Example #1
0
    public override void SimulateOwner()
    {
        base.SimulateOwner();

        if (!gameUnit.isInGame)
        {
            //App.shared.Log("!isInGame", gameUnit);
            return;
        }

        if (debug)
        {
            Debug.Log(this + " SimulateOwner");
        }

        if (!serverStarted)
        {
            gameUnit.ServerJoinedGame();
            gameUnit.ServerAndClientJoinedGame();
            serverStarted = true;
        }

        gameUnit.ServerFixedUpdate();
        gameUnit.ServerAndClientFixedUpdate();
    }