void StartInstallation() { Debug.Log("Starting installation with name : " + Nickname); GetComponent <Canvas>().enabled = false; DownloadGame downloader = GameObject.Find("Downloader").GetComponent <DownloadGame>(); installscreen.GetComponent <Canvas>().enabled = true; downloader.GetComponent <DownloadGame>().StartDownloader(); }
public static void InstallDone() // dont change this { Unzipper Unzipper = GameObject.Find("Unzipper").GetComponent <Unzipper>(); Unzipper.GetComponent <Unzipper>().InstallText.text = ("Afronden van installatie"); DownloadGame downloader = GameObject.Find("Downloader").GetComponent <DownloadGame>(); InstallOptions installoptions = GameObject.Find("InstallOptions").GetComponent <InstallOptions>(); installoptions.ResetShortcut(); downloader.GetComponent <DownloadGame>().CleanUp(); Unzipper.GetComponent <Unzipper>().InstallText.text = ("Installatie Voltooid !"); Gamebuttons.Enable(); ExitButtonStatic.SetActive(true); }
public static void Special() { DownloadGame downloader = GameObject.Find("Downloader").GetComponent <DownloadGame>(); downloader.GetComponent <DownloadGame>().InstallText.text = ("Bezig met toepassen van de config"); string config = (Browser.Savefolder + ConfigLocation); string text = File.ReadAllText(config); Debug.Log(config + text); text = text.Replace("Spectator_122", InstallOptions.Nickname); File.WriteAllText(config, text); GameName = SpecialScripts.Gamename; CheckForShortcut(); }