Example #1
0
 protected virtual void OnConnectedToMasterServerEventHandler()
 {
     MstTimer.WaitForEndOfFrame(() =>
     {
         MirrorRoomClient.Instance.StartClient();
     });
 }
Example #2
0
 protected virtual void Start()
 {
     if (IsAllowedToBeStartedInEditor())
     {
         // Start the server on next frame
         MstTimer.WaitForEndOfFrame(() =>
         {
             StartServer();
         });
     }
 }
Example #3
0
        protected override void Start()
        {
            base.Start();

            // Start master server at start
            if (Mst.Args.StartMaster && !Mst.Runtime.IsEditor)
            {
                // Start the server on next frame
                MstTimer.WaitForEndOfFrame(() =>
                {
                    StartServer();
                });
            }
        }