Files
Hasebe/Assets/Code/OfficeGame/BattleMode/Actions/Player/PlayerTimelineActor.cs
T
2026-10-22 23:42:25 +03:00

25 lines
691 B
C#

using System.Threading;
using Cysharp.Threading.Tasks;
using UnityEngine;
namespace Code.OfficeGame.BattleMode.Actions.Player
{
public class PlayerTimelineActor : EntityTimelineActor
{
private void Awake()
{
BattleActions.Add(BattleActionType.Wait, new BattleActionWait());
}
public override async UniTask DecideAction(CancellationToken ct)
{
var decidedAction = BattleActionType.Wait; // T
Debug.Log("player decided to wait");
await BattleActions[decidedAction].DecideAction();
CurrentAction = BattleActions[decidedAction];
}
}
}