public void StartNetworkGame() { imageSetter.GetComponent <ImageSetter>().inputObj.SetActive(false); imageSetter.GetComponent <ImageSetter>().SetImage(null, true); progressBar.GetComponent <ProgressBar>().userKnockoutObj.SetActive(false); progressBar.SetActive(false); royaleNumbers.SetActive(false); foreach (Transform child in transform.GetChild(0)) { child.gameObject.SetActive(false); } networkGameRunning = true; networkHandler.ConnectToServer(username); }