Better action system
This commit is contained in:
1 parent
2bd71f8dc5
commit
71bb4c3b5b
110 files changed
+73523
-86288
No files matched your search
@@ -20,13 +20,13 @@ namespace Code.OfficeGame.BattleMode.UI
|
||||
private MotionHandle _motionHandle;
|
||||
private UniTaskCompletionSource<BattleActionType> _decisionCompletionSource;
|
||||
|
||||
public void SetEntityInfo(Dictionary<BattleActionType, BattleAction> battleActions)
|
||||
public void SetEntityInfo(BattleActionType[] battleActions)
|
||||
{
|
||||
foreach (var button in _actionButtons) Destroy(button.gameObject);
|
||||
|
||||
_actionButtons.Clear();
|
||||
|
||||
foreach (var action in battleActions.Keys)
|
||||
foreach (var action in battleActions)
|
||||
{
|
||||
var button = Instantiate(actionButtonPrefab, transform);
|
||||
|
||||
|
||||
Reference in new issue
Block a user