using System.Collections.Generic;
|
using UnityEngine;
|
|
|
|
public class BattleManager : GameSystemManager<BattleManager>
|
{
|
public StoryBattleField storyBattleField = new StoryBattleField();//主线战场
|
|
protected Dictionary<int, BattleField> battleFields = new Dictionary<int, BattleField>();
|
|
public override void Init()
|
{
|
base.Init();
|
}
|
|
public override void Release()
|
{
|
base.Release();
|
}
|
|
public void StartStoryBattle()
|
{
|
if (null == storyBattleField)
|
{
|
storyBattleField = new StoryBattleField();
|
|
}
|
}
|
|
public void Run()
|
{
|
if (null != storyBattleField)
|
{
|
storyBattleField.Run();
|
}
|
|
foreach (var battleField in battleFields)
|
{
|
battleField.Value?.Run();
|
}
|
}
|
|
}
|