Esempio n. 1
0
    protected void FixedUpdate()
    {
        if (!isSetup || isLoading)
        {
            return;
        }

        AtFixedUpdate();

        if (currentAppState != null)
        {
            currentAppState.AtFixedUpdate();
        }
    }
Esempio n. 2
0
    protected void FixedUpdate()
    {
        if (lastFixedFrame != Time.frameCount)
        {
            lastFixedFrame   = Time.frameCount;
            firstFixedUpdate = true;
        }
        else
        {
            firstFixedUpdate = false;
        }

        if (!isSetup || isLoading)
        {
            return;
        }

        AtFixedUpdate();

        if (currentAppState != null)
        {
            currentAppState.AtFixedUpdate();
        }
    }