Exemplo n.º 1
0
    private void AbilityShortcuts()
    {
        if (Input.GetKeyDown(KeyCode.Alpha1))
        {
            gameSceneManager.GetComponent <GameSceneManager>().AbilityMoveBtn();
        }

        if (Input.GetKeyDown(KeyCode.Alpha2))
        {
            gameSceneManager.GetComponent <GameSceneManager>().AbilityAttackBtn();
        }

        if (Input.GetKeyDown(KeyCode.Alpha3))
        {
            currentlyRunningState.AbilityRotate(this);
        }
    }