예제 #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!");
        }