// Use this for initialization void Start() { _instance = this; NetCtrl.InitPlayerIpArray(); NetworkServerNet.CountPlayerStatic = 0; PlayerCreatNet.ResetClientCount(); }
private void InitLinkGameInfo(XmlDocument doc) { XmlNodeList LinkGameNode = doc.SelectNodes("GoodsList/LinkGameInfo"); foreach (XmlNode node in LinkGameNode) { LinkGameInfo linkGameInfo = new LinkGameInfo(); linkGameInfo.id = node.Attributes["Id"].Value; linkGameInfo.type = node.Attributes["Type"].Value; linkGameInfo.count = node.Attributes["Count"].Value; linkGameInfo.totalCount = node.Attributes["TotalCount"].Value; linkGameList.Add(linkGameInfo); } }