Esempio n. 1
0
    public void PlayerInput()
    {
        if (Input.GetKeyDown(KeyCode.Escape) || Input.GetButtonDown("Fire2"))
        {
            OffSkillIndicator();
            isCasting = false;
        }
        else if (Input.GetButtonDown("Fire1"))
        {
            //Fire!!!!
            Debug.Log("빠이어");
            switch (NumSkill)
            {
            case 0:
                PMC.Skill1Start(target);
                Debug.Log(target);
                break;

            case 1:
                PMC.Skill2Start(target);
                break;

            case 2:
                PMC.Skill3Start(target);
                break;

            case 3:
                PMC.SkillRStart(target);
                break;
            }
            isCasting = false;
            OffSkillIndicator();
        }
    }