private void OnTriggerStay2D(Collider2D other)
 {
     if (other.gameObject.name == "Wheel")
     {
         StatusEffectBehaviour statusEffectBehaviour = other.gameObject.GetComponentInParent <StatusEffectBehaviour>();
         if (statusEffectBehaviour != null)
         {
             statusEffectBehaviour.Apply <StatusEffectMelting>(Duration, Damage, DamageRate, sfx);
         }
     }
 }
Ejemplo n.º 2
0
        private void OnTriggerStay2D(Collider2D other)
        {
            if (other.gameObject.name == "Wheel")
            {
                StatusEffectBehaviour statusEffectBehaviour = other.gameObject.GetComponentInParent <StatusEffectBehaviour>();

                if (statusEffectBehaviour != null)
                {
                    statusEffectBehaviour.Apply <StatusEffectSlower>(Duration, AccelerationFactor, FrictionFactor, sfx);
                }
            }
        }