Beispiel #1
0
 public void Launch(TypeLaunch type)
 {
     switch (type)
     {
         case TypeLaunch.Host:
             this.manager.StartHost();
             GUI.DrawTexture(new Rect(0, 0, Screen.width, Screen.height), this.loadingImage);
             break;
         case TypeLaunch.Client:
             this.manager.StartClient();
             break;
         case TypeLaunch.Server:
             this.manager.OnStartServer();
             break;
         default:
             this.manager.StopHost();
             break;
     }
 }
Beispiel #2
0
 public static Launch Create(int id, TypeLaunch typeLaunch)
 => new Launch()
 {
     Id = id, TypeLaunch = typeLaunch
 };