25 lines
691 B
C#
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];
|
|
}
|
|
}
|
|
} |