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

        //Guard if gamelogic was found.
        if (!gameLogic)
        {
            return;
        }
        Color           playerColor = LittleFishersHelpers.PlayerColor(isLocalPlayer);
        string          playerName  = isLocalPlayer ? "Me" : "Unknown";
        PlayerGameState gameState   = GameLogic.CreatePlayerGameState(playerId, playerName, playerColor, 0);

        this.playerInventory = gameLogic.CreatePlayerInventory();
        gameLogic.AddPlayerToStateListing(gameState);
    }