21 lines
471 B
C#
21 lines
471 B
C#
using Cysharp.Threading.Tasks;
|
|
|
|
namespace Code.OfficeGame.BattleMode.Actions
|
|
{
|
|
public class BattleActionWait : BattleAction
|
|
{
|
|
private int _waitFrames;
|
|
public override void Tick(float tickDelta)
|
|
{
|
|
_waitFrames--;
|
|
if (_waitFrames <= 0) Finished = true;
|
|
}
|
|
|
|
public override async UniTask DecideAction()
|
|
{
|
|
Finished = false;
|
|
|
|
_waitFrames = 120;
|
|
}
|
|
}
|
|
} |