コード例 #1
0
        void Update()
        {
            if (_loadassets != null)
            {
                _loadassets.timeEvent();
            }
            if (Input.GetKey(KeyCode.Backspace))
            {
                IsShow = !IsShow;
            }
            m_FrameCount = m_FrameCount + 1;
            timePassed   = timePassed + Time.deltaTime;

            if (timePassed > fpsMeasuringDelta)
            {
                m_FPS = m_FrameCount / timePassed;

                timePassed   = 0.0f;
                m_FrameCount = 0;
            }
            if (initialize)
            {
                LuaManager.CallFunction("main_game.timeEvent");
            }
        }