Example #1
0
 void OnDisable()
 {
     MonoBehaviourManager.WipeCleanManagedComponents(gameObject);
 }
Example #2
0
 void OnDestroy()
 {
     MonoBehaviourManager.WipeCleanManagedComponents(gameObject);
 }
Example #3
0
 private void DestroyManagedComponents(System.Action callback)
 {
     MonoBehaviourManager.WipeCleanManagedComponents(gameObject);
     callback.Invoke();
 }