Esempio n. 1
0
 public static lhCoroutine GetInstance()
 {
     if (m_instance != null)
     {
         return(null);
     }
     return(m_instance = new lhCoroutine());
 }
Esempio n. 2
0
 private void InitializeBase()
 {
     m_debug     = lhDebug.GetInstance();
     m_coroutine = lhCoroutine.GetInstance();
     m_invoke    = lhInvoke.GetInstance();
     m_loom      = lhLoom.GetInstance();
     m_loop      = lhLoop.GetInstance();
     m_resources = lhResources.GetInstance();
     m_component = lhComponent.GetInstance();
     m_cacheData = lhCacheData.GetInstance();
     m_random    = lhRandom.GetInstance(UnityEngine.Random.Range(0, int.MaxValue));
     m_frame     = lhFrame.GetInstance(5);
     m_frame.AutoFPS(25, 60);
     m_objectManager = lhObjectManager.GetInstance();
     m_assetManager  = lhAssetManager.GetInstance();
     m_sourceUpdate  = lhSourceUpdate.GetInstance();
 }
Esempio n. 3
0
 public void Dispose()
 {
     m_instance = null;
 }