Attack animation, colliders, triggering
This commit is contained in:
1 parent
3e631899ea
commit
e61fcb78cf
94 files changed
+142319
-25861
No files matched your search
@@ -12,8 +12,6 @@ namespace Code.OfficeGame.BattleMode.Actions.Player
|
||||
|
||||
public override async UniTask DecideAction(CancellationToken ctx)
|
||||
{
|
||||
BattleActionDecisionResultCode decision = BattleActionDecisionResultCode.Deciding;
|
||||
|
||||
_battleActionDecisionPanel.SetEntityInfo(BattleActions);
|
||||
|
||||
BattleActionType decidedAction = BattleActionType.None;
|
||||
@@ -25,7 +23,8 @@ namespace Code.OfficeGame.BattleMode.Actions.Player
|
||||
await _battleActionDecisionPanel.Open(ctx);
|
||||
|
||||
decidedAction = await _battleActionDecisionPanel.GetDecision(ctx);
|
||||
|
||||
var decision = BattleActionDecisionResultCode.Deciding;
|
||||
|
||||
while (decidedAction != BattleActionType.None
|
||||
&& decision == BattleActionDecisionResultCode.Deciding
|
||||
&& !ctx.IsCancellationRequested)
|
||||
@@ -40,7 +39,6 @@ namespace Code.OfficeGame.BattleMode.Actions.Player
|
||||
decidedAction = BattleActionType.None;
|
||||
}
|
||||
}
|
||||
|
||||
CurrentAction = BattleActions[decidedAction];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user