private void OnNewTurn(ECamp camp) { m_isPlaced = false; GameObjectHelper.SetListContent(chessTemplate, chessRoot, m_chesses, proxy.chesses.Values, (index, item, data) => { item.SetData(data); }); }
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; } }
private void OnBattleResult(ECamp camp) { result.gameObject.SetActive(true); result.SetData(camp); }
public void UpdateCamp(message.Enums.Camp camp) { m_camp = (ECamp)camp; }
public void SetData(message.LoginReply info) { m_uuid = 1; m_name = info.name; m_camp = ECamp.None; }
public void OnNewTurn(NewTurnBroadcast msg) { m_whosTurn = (ECamp)msg.camp; OnBoardSync(msg.boardSync); SendEvent(Event.Gomuku.NewTurn, m_whosTurn); }