示例#1
0
        static void Initialize()
        {
            if (!initialized)
            {
                if (!Application.isPlaying)
                    return;
                initialized = true;
                var g = new GameObject("Loom");
                _current = g.AddComponent<Loom>();
            }

        }
示例#2
0
 public void QueueOnMainThread(Action action)
 {
     Loom.QueueOnMainThread(action);
 }
示例#3
0
 public System.Threading.Thread RunAsync(Action a)
 {
     return(Loom.RunAsync(a));
 }
示例#4
0
 public void QueueOnMainThread(Action action, float time)
 {
     Loom.QueueOnMainThread(action, time);
 }
示例#5
0
 void Awake()
 {
     _current = this;
     initialized = true;
     GameObject.DontDestroyOnLoad(gameObject);
 }
示例#6
0
 void OnDestroy()
 {
     if (_current == this)
     {
         initialized = false;
         _current = null;
     }
 }
示例#7
0
 void Awake()
 {
     _current    = this;
     initialized = true;
     GameObject.DontDestroyOnLoad(gameObject);
 }