Beispiel #1
0
    //场景物理更新
    public void stateFixedUpdate()
    {
        if (Application.isLoadingLevel)
        {
            return;
        }

        if (m_state != null && m_bRunBegin == false)
        {
            m_state.stateBegin(); //执行状态(场景)初始化
            m_bRunBegin = true;
            Debug.Log("StateBeginToRun " + m_bRunBegin.ToString());
        }

        m_state.stateFixedUpdate();
    }