private void OnTriggerExit(Collider other) { Character fromCollider = this.GetFromCollider(other); if (fromCollider != null) { Radiation local = fromCollider.GetLocal <Radiation>(); if (local != null) { local.RemoveRadiationZone(this); } } }
private void OnTriggerExit(Collider other) { Character fromCollider = this.GetFromCollider(other); if (!fromCollider) { return; } Radiation local = fromCollider.GetLocal <Radiation>(); if (!local) { return; } local.RemoveRadiationZone(this); }