private void EndSkill() { skilling = false; host.LockColliderTakeDamage.CancelRegistration(codeSkill); ss = null; lastTimeSkill = Time.time; }
public override void StartSkill() { base.StartSkill(); skilling = true; ss = Instantiate(prefab, host.center, Quaternion.identity); ss.SetTarget(host, timeShield); host.LockColliderTakeDamage.Register(codeSkill); ss.OnOutTime += EndSkill; }