コード例 #1
0
    void Update()
    {
        if (!currentCharacter.GetIsBlocked() && !currentCharacter.GetIsAI())
        {
            if (Input.GetKeyDown(GameConstants.A1))
            {  ///Swap for first assist character
                /////Executes only one command, one function checks if the swap is available and performs it if so
                Swap("Assist1", false);
            }

            if (Input.GetKeyDown(GameConstants.A2))
            {  ///Swap for second assist character
                Swap("Assist2", false);
            }
        }
    }