public void Awake() { GameObject popupholder = GameObject.Find("Popups"); thiscanvas = AlGlobalVar.FindObject(popupholder, "HowToscreenCanvas").GetComponent <Canvas>(); introcanvas = AlGlobalVar.FindObject(popupholder, "IntroscreenCanvas").GetComponent <Canvas>(); }
public void Awake() { GameObject popupholder = GameObject.Find("Popups"); thiscanvas = AlGlobalVar.FindObject(popupholder, "IntroscreenCanvas").GetComponent <Canvas>(); thiscanvas.gameObject.SetActive(true); GameObject.Find("GameController").GetComponent <BigAlGame>().pause = true; }
public void button1_Click() // howto screen { GameObject popupholder = GameObject.Find("Popups"); Canvas howtocanvas = AlGlobalVar.FindObject(popupholder, "HowToscreenCanvas").GetComponent <Canvas>(); if (howtocanvas) { howtocanvas.gameObject.SetActive(true); thiscanvas.gameObject.SetActive(false); } }
public void Awake() { GameObject popupholder = GameObject.Find("Popups"); thiscanvas = AlGlobalVar.FindObject(popupholder, "FFCanvas").GetComponent <Canvas>(); labelcount = AlGlobalVar.FindObject(thiscanvas.gameObject, "labelcount").GetComponent <Text>(); labelFF = AlGlobalVar.FindObject(thiscanvas.gameObject, "labelFF").GetComponent <Text>(); pictureFF = AlGlobalVar.FindObject(thiscanvas.gameObject, "pictureFF").GetComponent <Image>(); Canvas dropdowncanvas = GameObject.Find("DropdownCanvas").GetComponent <Canvas>(); comboBox1 = AlGlobalVar.FindObject(dropdowncanvas.gameObject, "comboBox1").GetComponent <Dropdown>(); Color textcolour = comboBox1.GetComponentInChildren <Text>().color; textcolour.a = 0; comboBox1.GetComponentInChildren <Text>().color = textcolour; ColorBlock dropdowncolours = comboBox1.colors; Color normalcolour = comboBox1.colors.disabledColor; Color normalcolour2 = comboBox1.colors.highlightedColor; Color normalcolour3 = comboBox1.colors.normalColor; Color normalcolour4 = comboBox1.colors.pressedColor; normalcolour.a = 0; normalcolour2.a = 0; normalcolour3.a = 0; normalcolour4.a = 0; dropdowncolours.disabledColor = normalcolour; dropdowncolours.highlightedColor = normalcolour2; dropdowncolours.normalColor = normalcolour3; dropdowncolours.pressedColor = normalcolour4; comboBox1.colors = dropdowncolours; }