using UnityEngine;
|
|
// record直接全程播放就好了 不需要其他操作
|
|
public class RecordModeOperationAgent : IOperationAgent
|
{
|
// GameNetPackage[] packs
|
|
|
|
|
public RecordModeOperationAgent(BattleField battleField) : base(battleField)
|
{
|
|
}
|
|
public override void Run()
|
{
|
base.Run();
|
|
DoNext();
|
}
|
|
public override void DoNext()
|
{
|
base.DoNext();
|
|
if (battleField.IsBattleEnd())
|
{
|
return;
|
}
|
|
if (!battleField.recordPlayer.IsPlaying())
|
{
|
battleField.DistributeNextPackage();
|
}
|
}
|
}
|