Exemple #1
0
 // Use this for initialization
 void Start()
 {
     _instance = this;
     NetCtrl.InitPlayerIpArray();
     NetworkServerNet.CountPlayerStatic = 0;
     PlayerCreatNet.ResetClientCount();
 }
Exemple #2
0
    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);
        }
    }