Beispiel #1
0
    protected virtual void FixedUpdate()
    {
        if (!gameUnit.isInGame)
        {
            return;
        }

        if (BoltNetwork.isClient)
        {
            if (debug)
            {
                Debug.Log(this + " FixedUpdate");
            }

            if (!clientStarted)
            {
                gameUnit.ClientJoinedGame();
                gameUnit.ServerAndClientJoinedGame();
                clientStarted = true;
            }

            gameUnit.ClientFixedUpdate();
            gameUnit.ServerAndClientFixedUpdate();
        }
    }