示例#1
0
            public static void InitializeServer()
            {
                ServerTCP.InitailizeNetWork();
                Debug.Log("Server started", true);

                //Load save
                SaveManager.Load();
                ClientManager.pawns          = SaveManager.saveData.pawns;
                ClientManager.currentMap     = SaveManager.saveData.currentMap;
                ClientManager.currentMapData = SaveManager.saveData.currentMapData;
                Thread threadAutoSave = new Thread(new ThreadStart(AutoSave));

                threadAutoSave.Start();
            }