using UnityEngine;
|
using System.Collections.Generic;
|
using System;
|
|
public class RoundChangeAction : RecordAction
|
{
|
private Action roundChangeCallback;
|
|
public RoundChangeAction(BattleField _battleField, Action _roundChangeCallback = null)
|
: base(RecordActionType.RoundChange, _battleField, null)
|
{
|
roundChangeCallback = _roundChangeCallback;
|
}
|
|
public override void ForceFinish()
|
{
|
if (isFinish)
|
return;
|
|
roundChangeCallback?.Invoke();
|
isFinish = true;
|
}
|
|
public override void Run()
|
{
|
if (isFinish)
|
return;
|
base.Run();
|
roundChangeCallback?.Invoke();
|
isFinish = true;
|
}
|
}
|