Beispiel #1
0
 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();
 }
Beispiel #2
0
 void LateUpdate()
 {
     if (null != GameSceneMgr)
     {
         GameSceneMgr.LateUpdate();
     }
 }
Beispiel #3
0
    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);
    }
Beispiel #4
0
 void Awake()
 {
     Inst = this;
 }