Example #1
0
    void Update()
    {
        if ((m_useSkill = SelectSkill()) == null)
        {
            Witch.SetState(WitchState.Idle);
        }

        m_useSkill.OnSkill(GameObject.Find("Player").transform);
        Witch.SetState(WitchState.Run);
    }
Example #2
0
 public void OnTeleport(Transform target, int type)
 {
     _oldSkill = WitchSkill.Teleport;
     _curSkill = _skills[_oldSkill];
     _curSkill.OnSkill(target, type);
 }
Example #3
0
 public void OnSkill(WitchSkill skill, Transform target)
 {
     _oldSkill = skill;
     _curSkill = _skills[_oldSkill];
     _curSkill.OnSkill(target);
 }