Exemplo n.º 1
0
    public void FinaliseAction()
    {
        _actionQueue.Enqueue(_currentSelectAction);
        _currentPartyMemberIndex++;
        if (_currentPartyMemberIndex < PartyController.Instance.PartyMembers.Count)
        {
            SetState(States.SelectAction);
        }
        else
        {
            SetState(States.EnemyAI);
        }

        _currentPartyMemberIndex %= PartyController.Instance.PartyMembers.Count;

        ActingPartyMemberChanged?.Invoke();
    }
Exemplo n.º 2
0
 private void _EnemyAI_Enter()
 {
     _currentPartyMemberIndex = -1;
     ActingPartyMemberChanged?.Invoke();
     EnemyController.Instance.HandleEnemies(_enemies);
 }
Exemplo n.º 3
0
 private void _MainMenu_Exit()
 {
     _currentPartyMemberIndex = 0;
     ActingPartyMemberChanged?.Invoke();
 }