public void Restart() { if (null != GDSMgr) { GDSMgr.DestroyGDS(); GDSMgr = null; } if (null != LanguageMgr) { LanguageMgr.Destroy(); LanguageMgr = null; } if (null != ProxyMgr) { ProxyMgr.Destroy(); ProxyMgr = null; } EventMgr.Destroy(); SceneMgr.Destroy(); StateMgr.Destroy(); PlatformMgr.Destroy(); ResMgr.Destroy(); GameSceneMgr.Destroy(); Instance = null; GameObject.Destroy(gameObject); SceneMgr.EnterScene("Lancher", null); EffectManager.Instance.ClearAllEffect(); }
void LateUpdate() { if (null != GameSceneMgr) { GameSceneMgr.LateUpdate(); } }
void Update() { ulong dtTime = TimeMgr.SinceTimeMs(mLastUpdateTime); mLastUpdateTime = TimeMgr.CurTimeMs; SocketMgr.Update(); StateMgr.Update(); ResMgr.Update(); HttpMgr.Update(); if (null != GameSceneMgr) { GameSceneMgr.Update(dtTime); } TimerManager.Instance.Update(dtTime); }
void Awake() { Inst = this; }