/// <summary> /// Called when a collider (with isTrigger set to true) is within this collider. /// </summary> /// <param name="collidingObject">Colliding object.</param> public override bool OnTriggerExit(Collider collidingObject) { ES_Event_Int dataEvent = collisionEnterEvent as ES_Event_Int; if (dataEvent != null) { dataEvent.Value = -projectileDamage; } return(base.OnTriggerExit(collidingObject)); }