コード例 #1
0
ファイル: Loom.cs プロジェクト: npnf-seta/Fox-Poker
        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
ファイル: Loom.cs プロジェクト: npnf-seta/Fox-Poker
 void Awake()
 {
     _current = this;
     initialized = true;
     GameObject.DontDestroyOnLoad(gameObject);
 }
コード例 #6
0
ファイル: Loom.cs プロジェクト: npnf-seta/Fox-Poker
 void OnDestroy()
 {
     if (_current == this)
     {
         initialized = false;
         _current = null;
     }
 }
コード例 #7
0
ファイル: Loom.cs プロジェクト: npnf-seta/Fox-Poker
 void Awake()
 {
     _current    = this;
     initialized = true;
     GameObject.DontDestroyOnLoad(gameObject);
 }