void OnTriggerExit(Collider other) { DynamicCollider collider = DynamicCollider.GetScript(other); if (collider != null) { collider.OnExitLantern(lantern); } }
public static DynamicCollider GetScript(Collider collider) { DynamicCollider returnScript = null; if (allColliders.ContainsKey(collider) == true) { returnScript = allColliders [collider]; } return(returnScript); }