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

        AtFixedUpdate();

        if (currentAppState != null)
        {
            currentAppState.AtFixedUpdate();
        }
    }
Exemplo 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();
        }
    }