void Update() { if ((m_useSkill = SelectSkill()) == null) { Witch.SetState(WitchState.Idle); } m_useSkill.OnSkill(GameObject.Find("Player").transform); Witch.SetState(WitchState.Run); }
public void OnTeleport(Transform target, int type) { _oldSkill = WitchSkill.Teleport; _curSkill = _skills[_oldSkill]; _curSkill.OnSkill(target, type); }
public void OnSkill(WitchSkill skill, Transform target) { _oldSkill = skill; _curSkill = _skills[_oldSkill]; _curSkill.OnSkill(target); }