Пример #1
0
        public static bool Destruct()
        {
            if (IsInit)
            {
                SNetServerProcess.StopProcess();
                ServerSocket.Close();
                ServerSocket = null;

                IsInit   = false;
                IsServer = true;

                Debug.Log("Server is close!");

                return(true);
            }
            return(false);
        }
Пример #2
0
        public static void StartUp()
        {
            SNetServerProcess.StartProcess();

            Debug.Log("Server running!");
        }