Example #1
0
     public override void InitIfExists(PlayerController player)
     {
         if (Global.Modeler.Session.Upgrades.Contains(UpgradeId.SPIKES))
         {
             player.Healther.Base.EvHitted += (mob) =>
             {
                 if (mob && Vector3.Distance(mob.transform.position, player.transform.position) <= _distance)
                 {
                     player.Attacker.Damager.DamageManually(mob.gameObject);
                 }
                 Effecter.PlayEffect(player.TargetBuffs.TargetEffects, EffectId.Spikes);
             }
         }
         ;
     }
 }