using UnityEngine;
|
|
|
public class AutoModeOperationAgent : IOperationAgent
|
{
|
public AutoModeOperationAgent(BattleField battleField) : base(battleField)
|
{
|
|
}
|
|
public override void Run()
|
{
|
if (!battleField.IsBattleFinish)
|
{
|
return;
|
}
|
|
base.Run();
|
|
if (!battleField.recordPlayer.IsPlaying())
|
{
|
DoNext();
|
}
|
}
|
|
public override void DoNext()
|
{
|
base.DoNext();
|
|
if (!battleField.recordPlayer.IsPlaying())
|
{
|
// ask for next action
|
}
|
}
|
}
|