コード例 #1
0
    private void CheckSkillKey()
    {
        // Check This character able to use skills
        if (fsmPlyer.IsAbleToUseSkill() == false)
        {
            return;
        }


        // (Need a Modify)
        // 이거 다 스크립트
        if (Input.GetKeyDown(KeyCode.Mouse0))
        {
            if (skillCheckInfo[0].state == SkillState.Available) // coolTimer[0] -1 일 경우 스킬 사용 가능 상태
            {
                ObjectMgr.instance.CreateSkill("Skill_MeleeBase", this.gameObject);
                skillCheckInfo[0].state = SkillState.Working;

                fsmPlyer.SetState(CharacterBasicState.Attack, CharacterAnimationState.Attack_ML);
            }
        }
    }