Timeline works YAY

This commit is contained in:
ThomasCharester committed 2026-10-22 23:42:25 +03:00
1 parent 6114192055
commit 7098d938a7
84 files changed
+96509 -51755

No files matched your search

@@ -0,0 +1,25 @@
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];
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: f9f637cef8714ef1b5ec779d21630ebd
timeCreated: 1792693336