public void OnOpenVendor(NetworkMessage msg)
    {
        PlayerPawn   pawn   = msg.ReadMessage <GameMsg.MsgPawn>().pawn as PlayerPawn;
        VendorScreen screen = new VendorScreen(game, RB.DisplaySize, pawn);

        game.OpenClientHandler(new VendorClientHandler(game, pawn, screen));
        game.OpenScreen(screen);
    }
 public VendorClientHandler(Game game, Pawn pawn, VendorScreen screen)
 {
     this.game   = game;
     this.pawn   = pawn;
     this.screen = screen;
     AddHandler(GameMsg.StartBattle, OnBattleStart);
     AddHandler(GameMsg.ShopList, OnShopList);
     AddHandler(GameMsg.BuySpell, OnBuySpell);
     AddHandler(GameMsg.DropSpell, OnDropSpell);
 }
    public void OnOpenVendor(NetworkMessage msg)
    {
        PlayerPawn   pawn   = msg.ReadMessage <GameMsg.MsgPawn>().pawn as PlayerPawn;
        VendorScreen screen = new VendorScreen(game, RB.DisplaySize, pawn);
        MessageBox   msgBox = new MessageBox("Congratulations! This area is cleared");

        game.OpenClientHandler(new VendorClientHandler(game, pawn, screen));
        msgBox.AddButton("Continue", () => {
            game.OpenScreen(screen);
        });
        game.GetOpenScreen().ShowMessageBox(msgBox);
    }