Ejemplo n.º 1
0
 void OnDisable()
 {
     if (instance == this)
     {
         instance = null;
     }
 }
Ejemplo n.º 2
0
        static void Initialize()
        {
            if(!initialized) {
            if(!Application.isPlaying)
                return;

            initialized = true;

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

                initialized = true;

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