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
コード例 #1
0
 //void OnApplicationQuit()
 void OnDomainUnload()
 {
     if (gameObject != null)
     {
         GameObject.DestroyImmediate(gameObject);
     }
     sharedInstance = null;
 }
コード例 #2
0
 //void OnApplicationQuit()
 void OnDomainUnload()
 {
     if(gameObject != null) {
         GameObject.DestroyImmediate(gameObject);
     }
     sharedInstance = null;
 }