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; } }
public static Launch Create(int id, TypeLaunch typeLaunch) => new Launch() { Id = id, TypeLaunch = typeLaunch };