Beispiel #1
0
        //---------------------------------------------------------------------
        public void Update(float elapsed_tm)
        {
            if (SoundMgr != null)
            {
                SoundMgr.Update();
            }

            if (FTMgr != null)
            {
                FTMgr.Update(elapsed_tm);
            }

            if (DelayMgr != null)
            {
                DelayMgr.Update(elapsed_tm);
            }

            if (NetMgr != null)
            {
                NetMgr.Update(elapsed_tm);
            }

            if (AsyncAssetLoaderMgr != null)
            {
                AsyncAssetLoaderMgr.Update(Time.deltaTime);
            }

            if (LuaMgr != null)
            {
                LuaMgr.Update(elapsed_tm);
            }

            if (TimerShaft != null)
            {
                TimerShaft.ProcessTimer((ulong)Stopwatch.ElapsedMilliseconds);
            }

            if (Input.GetKeyDown(KeyCode.Escape))
            {
                LuaMgr._CSharpCallOnAndroidQuitConfirm();
            }
        }
Beispiel #2
0
        //---------------------------------------------------------------------
        public void Update(float elapsed_tm)
        {
            if (SoundMgr != null)
            {
                SoundMgr.Update();
            }

            //if (FTMgr != null)
            //{
            //    FTMgr.Update(elapsed_tm);
            //}

            if (DelayMgr != null)
            {
                DelayMgr.Update(elapsed_tm);
            }

            if (NetMgr != null)
            {
                NetMgr.Update(elapsed_tm);
            }

            if (LuaMgr != null)
            {
                LuaMgr.Update(elapsed_tm);
            }

            if (CsRuntime != null)
            {
                CsRuntime.Update();
            }

            //if (TimerShaft != null)
            //{
            //    TimerShaft.ProcessTimer((ulong)Stopwatch.ElapsedMilliseconds);
            //}

            //if (Input.GetKeyDown(KeyCode.Escape))
            //{
            //    //LuaMgr._CSharpCallOnAndroidQuitConfirm();
            //}
        }