Esempio n. 1
0
 public virtual void OnCast(CombatEntity user, List <CombatEntity> target)
 {
     if (Time.time > timeToNextCast)
     {
         timerCast   = castTime;
         this.user   = user;
         this.target = target;
         user.StartCastSkill(this);
         Debug.Log($"{user} is casting {this.skillName}");
     }
     else
     {
         Debug.Log($"{this.skillName} is on cooldown");
     }
 }