示例#1
0
        private void OnNewTurn(ECamp camp)
        {
            m_isPlaced = false;

            GameObjectHelper.SetListContent(chessTemplate, chessRoot, m_chesses, proxy.chesses.Values,
                                            (index, item, data) =>
            {
                item.SetData(data);
            });
        }
示例#2
0
        public void SetData(ECamp camp)
        {
            PlayerData player = ProxyManager.instance.GetProxy <HallProxy>().mainPlayerData;

            if (camp == player.camp)
            {
                resultText.text  = "+ 获胜 +";
                resultText.color = Color.red;
            }
            else if (camp == player.enemyCamp)
            {
                resultText.text  = "- 失败 -";
                resultText.color = Color.gray;
            }
            else
            {
                resultText.text  = "= 平局 =";
                resultText.color = Color.gray;
            }
        }
示例#3
0
 private void OnBattleResult(ECamp camp)
 {
     result.gameObject.SetActive(true);
     result.SetData(camp);
 }
示例#4
0
 public void UpdateCamp(message.Enums.Camp camp)
 {
     m_camp = (ECamp)camp;
 }
示例#5
0
 public void SetData(message.LoginReply info)
 {
     m_uuid = 1;
     m_name = info.name;
     m_camp = ECamp.None;
 }
示例#6
0
 public void OnNewTurn(NewTurnBroadcast msg)
 {
     m_whosTurn = (ECamp)msg.camp;
     OnBoardSync(msg.boardSync);
     SendEvent(Event.Gomuku.NewTurn, m_whosTurn);
 }