Beispiel #1
0
    /// <summary>
    /// 显示选择的卡组
    /// </summary>
    /// <param name="deckName"></param>
    public void ShowDeck(string deckName)
    {
        Deck deck = new Deck();

        deck = DeckLoad.LoadDeck(deckName);
        editDeckUI.ShowDeck(deck);
    }
Beispiel #2
0
 private void OnChangeSelectDeck(int arg0)
 {
     if (!theHost)
     {
         Debug.Log("发送 玩家改变卡组");
         DuelMesDTO dto = new DuelMesDTO();
         Deck       a   = DeckLoad.LoadDeck(deckDropDown.captionText.text);
         dto.deck           = new Protocol.Deck();
         dto.deck.mainDeck  = a.mainDeck.ToArray();
         dto.deck.extraDeck = a.extraDeck.ToArray();
         NetWorkScript.Instance.write(TypeProtocol.TYPE_GAMEHALL_BRQ, 0, GameHallProtocol.GAMEHALL_CHANGEDECK_BRQ, dto);
     }
 }
Beispiel #3
0
 /// <summary>
 /// 开始游戏
 /// </summary>
 public void OnStartGame()
 {
     if (theHost)
     {
         DuelMesDTO dto = new DuelMesDTO();
         Deck       a   = DeckLoad.LoadDeck(deckDropDown.captionText.text);
         dto.deck           = new Protocol.Deck();
         dto.deck.mainDeck  = a.mainDeck.ToArray();
         dto.deck.extraDeck = a.extraDeck.ToArray();
         dto.account        = ComVal.account;
         NetWorkScript.Instance.write(TypeProtocol.TYPE_GAMEHALL_BRQ, 0, GameHallProtocol.GAMEHALL_STARTGAME_BRQ, dto);
     }
 }