void OnTriggerExit(Collider other) { GameObject victim = other.gameObject; ValidBuffTarget valid = victim.GetComponent <ValidBuffTarget>(); if (valid != null) { if (targets.Contains(other)) { targets.Remove(other); } } }
void OnTriggerEnter(Collider other) { GameObject victim = other.gameObject; ValidBuffTarget valid = victim.GetComponent <ValidBuffTarget>(); if (valid != null) { if (!checkIfInBuilding(victim) && (victim.tag.Equals("Player") || victim.tag.Equals("OwnedNPC"))) { buffsys.slowApplyingSystem(victim, slowDuration, slowDecimal); } } }
void OnTriggerEnter(Collider other) { GameObject victim = other.gameObject; ValidBuffTarget valid = victim.GetComponent <ValidBuffTarget>(); if (valid != null) { if (!checkIfInBuilding(victim) && (victim.tag.Equals("Player") || victim.tag.Equals("OwnedNPC"))) { buffsys.dmgApplyingSystem(victim, burnDuration, burnTickTime, burnDamagePerTick, BuffsAndBoons.Effects.Burn); } } }
void OnTriggerEnter(Collider other) { GameObject victim = other.gameObject; ValidBuffTarget valid = victim.GetComponent <ValidBuffTarget>(); if (valid != null) { buffsys.regenApplyingSystem(victim.gameObject, regenDuration, regenTickTime, healingPerTick); if (!targets.Contains(other)) { targets.Add(other); } } }