public static lhInvoke GetInstance()
 {
     if (m_instance != null)
     {
         return(null);
     }
     return(m_instance = new lhInvoke());
 }
Example #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();
 }
 public void Dispose()
 {
     m_instance = null;
 }