Convenience class that extends MonoBehavior to provide a Scheduler and TaskFactory for executing tasks on the behaviour instance.
Derived classes must remember to use the override keyword when providing an Awake implementation or the task factory will not be initialized.
Inheritance: UnityEngine.MonoBehaviour
Exemplo n.º 1
0
 //void OnApplicationQuit()
 void OnDomainUnload()
 {
     if (gameObject != null)
     {
         GameObject.DestroyImmediate(gameObject);
     }
     sharedInstance = null;
 }
 //void OnApplicationQuit()
 void OnDomainUnload()
 {
     if(gameObject != null) {
         GameObject.DestroyImmediate(gameObject);
     }
     sharedInstance = null;
 }