Exemple #1
0
    private IEnumerator HandleCharacterSelection()
    {
        characterSelectionManager.Begin();

        while (characterSelectionManager.currState != CharacterSelectionManager.State.End)
        {
            yield return(null);
        }

        currState = State.Battle;
    }
    public void SwapCharacter()
    {
        CharacterSelectionManager csm = FindObjectOfType <CharacterSelectionManager>();

        if (SwapActive)
        {
            csm.CloseSelectionWindow();
        }
        else
        {
            // Restarting
            csm.Begin();
            UpdateActionWindowButtons(false);
        }

        SwapActive = !SwapActive;
    }