예제 #1
0
 void OnDisable()
 {
     if (instance == this)
     {
         instance = null;
     }
 }
예제 #2
0
        static void Initialize()
        {
            if(!initialized) {
            if(!Application.isPlaying)
                return;

            initialized = true;

            GameObject go = new GameObject("ThreadScheduler");
            instance = go.AddComponent<ThreadScheduler>();
            }
        }
예제 #3
0
        static void Initialize()
        {
            if (!initialized)
            {
                if (!Application.isPlaying)
                {
                    return;
                }

                initialized = true;

                GameObject go = new GameObject("ThreadScheduler");
                instance = go.AddComponent <ThreadScheduler>();
            }
        }
예제 #4
0
 void Awake()
 {
     instance    = this;
     initialized = true;
 }
예제 #5
0
 void OnDisable()
 {
     if(instance == this) {
     instance = null;
     }
 }
예제 #6
0
 void Awake()
 {
     instance = this;
     initialized = true;
 }