//----------------一些接口------------------------------------- public Plaza createPlaza(int index, LobbyEvent.Plaza data) { Plaza plaza = Instantiate(_plazaPrefab, new Vector3(0, 0, 0), Quaternion.identity); plaza.transform.SetParent(_plazaRoot.transform); plaza.transform.localPosition = new Vector3(index * _plazaInteral + _plazaInteral / 2, 0, 0); CommonUtil.RoomRule roomRule = CommonUtil.RoomRule.deserialize(data.rule); string rr; if (roomRule.lmtRound != 0) { rr = "回合限制" + roomRule.lmtRound; } else { rr = "回合无限制"; } if (roomRule.lmtTurnTime != 0) { rr = rr + " 思考时间" + roomRule.lmtTurnTime + "秒"; } else { rr = rr + " 思考时间无限制"; } plaza.updatePlaza(index, data.plazaid, data.name, data.star, data.des, rr, this); plaza.transform.localScale = plaza.transform.localScale * CommonUtil.Util.getScreenScale(); return(plaza); }