// On Destroy public void OnDestroy() { CheckForLostReferences(); ReferenceObject.SafeDestroy(m_oRef); }