Esempio n. 1
0
        //Methods
        /// <summary>
        /// Resets the MPManager instance.
        /// </summary>
        public void Reset()
        {
            Log.Message("Resetting MPManager instance.");

            Log.Message("Resetting MPClient");
            ClientUninitialize();
            Log.Message("Resetting MPServer");
            ServerUninitialize();


            instance = new MPManager();
            SetMPRole(MPRoleType.None);
            Log.Message("MPManager instance resetted.");
        }
Esempio n. 2
0
        //Methods
        /// <summary>
        /// Resets the MPManager instance.
        /// </summary>
        public void Reset()
        {
            Log.Message("Resetting MPManager instance.");

            Log.Message("Resetting MPClient");
            ClientUninitialize();
            Log.Message("Resetting MPServer");
            ServerUninitialize();

            instance = new MPManager();
            SetMPRole(MPRoleType.None);
            Log.Message("MPManager instance resetted.");
        }