public void B_SELECTING_HOST() { decision = 2; ClientPanel_2.transform.parent.GetComponent <Image>().color = ClientPanel_2.transform.parent.GetComponent <Button>().colors.highlightedColor; ClientPanel_2.transform.parent.GetComponent <Button>().enabled = false; isMakingServer = false; isSelectingHost = true; HostPanel.SetActive(false); HostPanel_2.SetActive(false); ClientPanel.SetActive(false); ClientPanel_2.SetActive(true); }
private void Start() { done = false; isMakingServer = false; isSelectingHost = false; HostPanel.SetActive(true); ClientPanel.SetActive(true); HostPanel_2.SetActive(false); ClientPanel_2.SetActive(false); decision = 0; lm = GameObject.Find("LevelManager").GetComponent <LevelManager>(); }
public void ReturnToDecision() { if (decision == 1) { HostPanel_2.transform.parent.GetComponent <Button>().enabled = true; } if (decision == 2) { ClientPanel_2.transform.parent.GetComponent <Button>().enabled = true; } decision = 0; isMakingServer = false; isSelectingHost = false; ClientPanel_2.SetActive(false); HostPanel_2.SetActive(false); ClientPanel.SetActive(true); HostPanel.SetActive(true); }