Exemple #1
0
    public void ResponseListPieces(ResponseListPieces response)
    {
        if (!m_flgStart)
        {
            m_flgStart = true;
            SetAllPieces(response.pieces);
        }

        for (int i = 0; i < PIECE_NUM; i++)
        {
            if (Pieces[i].GetComponent <Piece>().info.captured != response.pieces[i].captured)
            {
                Destroy(Pieces[i]);
                if (response.pieces[i].owner_user_id == UserInfo.game_user_id)
                {
                    Pieces[i] = SetPiece(response.pieces[i], enemy_case);
                }
                else
                {
                    Pieces[i] = SetPiece(response.pieces[i], my_case);
                }
            }
            else
            {
                Pieces[i].GetComponent <Piece>().info = response.pieces[i];
            }
        }

        if (UserInfo.game_status == "playing")
        {
            auto.Auto(new List <GameObject>(Pieces));
        }
    }
Exemple #2
0
 public void ResponseListPieces(ResponseListPieces response)
 {
     BoardPanelController.UpdateCoinPanel(response.pieces, is_first);
 }
Exemple #3
0
 public void ResponseListPieces(ResponseListPieces response)
 {
     BoardPanelController.UpdateCoinPanel(response.pieces, is_first);
     MyselfPanelController.UpdateCoinPanel(response.pieces, false);
     OpponentPanelController.UpdateCoinPanel(response.pieces, true);
 }