Exemplo n.º 1
0
 /// <summary>
 /// Destroys this behaviour, removing it from the managed behaviour system
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="behaviour"></param>
 public static void Destroy <T>(T behaviour) where T : ManagedBehaviour
 {
     ManagedBehaviourSystem.Remove(behaviour);
     Destroy(behaviour);
 }
Exemplo n.º 2
0
 private void OnDestroy()
 {
     ManagedBehaviourSystem.Remove(this);
     this.OnManagedDestroy();
 }