Beispiel #1
0
 /// <summary>
 /// Starte match scene
 /// </summary>
 protected virtual void StartLoadingGameScene()
 {
     ScenesLoader.LoadSceneByName(startRoomScene, (progressValue) =>
     {
         Mst.Events.Invoke(MstEventKeys.showLoadingInfo, $"Loading scene {Mathf.RoundToInt(progressValue * 100f)}% ... Please wait!");
     }, null);
 }
 public void StartMatch()
 {
     ScenesLoader.LoadSceneByName(startRoomScene, (progressValue) =>
     {
         Msf.Events.Invoke(MsfEventKeys.showLoadingInfo, $"Loading scene {Mathf.RoundToInt(progressValue * 100f)}% ... Please wait!");
     }, null);
 }
        public void StartGame(GameInfoPacket gameInfo)
        {
            Msf.Options.Set(MsfDictKeys.autoStartRoomClient, true);
            Msf.Options.Set(MsfDictKeys.roomId, gameInfo.Id);

            ScenesLoader.LoadSceneByName("Room", (progressValue) =>
            {
                Msf.Events.Invoke(EventKeys.showLoadingInfo, $"Loading scene {Mathf.RoundToInt(progressValue * 100f)}% ... Please wait!");
            }, null);
        }