Example #1
0
 private void EndSkill()
 {
     skilling = false;
     host.LockColliderTakeDamage.CancelRegistration(codeSkill);
     ss            = null;
     lastTimeSkill = Time.time;
 }
Example #2
0
 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;
 }