Example #1
0
 public static void Init()
 {
     if (!GameMain.IsPlaying)
     {
         return;
     }
     lock (mLock)
     {
         if (isInit == true)
         {
             return;
         }
         var go = new GameObject("[MY_COROUTINE]");
         m      = go.AddComponent <MyCoroutineMono>();
         isInit = true;
         DontDestroyOnLoad(go);
     }
 }
Example #2
0
 public static void Init(int maxFrameIntervalMs)
 {
     MAX_FRAME_INTERVAL_MS = maxFrameIntervalMs;
     MyCoroutineMono.Init();
 }