// Start is called before the first frame update void Start() { if (adjustMenuScript == null) { adjustMenuScript = GameObject.Find("popUI").GetComponent <adjustMenu>(); } }
//Initialization functions void Start() { if (hexa == null) { hexa = Hexasphere.GetInstance("Hexasphere"); } if (menuObject == null) { menuObject = GameObject.Find("popUI").GetComponent <adjustMenu>(); } }
//When button for creating a wall is pressed, // Start is called before the first frame update void Start() { if (adjustM == null) { adjustM = GameObject.Find("popUI").GetComponent <adjustMenu>(); } if (hexa == null) { hexa = GameObject.Find("Hexasphere").GetComponent <Hexasphere>(); } }
// Start is called before the first frame update void Start() { if (menu == null) { menu = GameObject.Find("popUI").GetComponent <adjustMenu>(); } if (popUI == null) { popUI = GameObject.Find("popUI"); } for (int i = 0; i < popUI.transform.childCount; i++) { Image child = popUI.transform.GetChild(i).GetComponent <Image>(); //CanvasGroup childCanvas = child.GetComponent<CanvasGroup>(); popUIChildren.Add(child); } }
void Start() { if (touchMan == null) { touchMan = GameObject.Find("_Managers").GetComponent <touchManager>(); } if (menuParent == null) { menuParent = GetComponentInParent <adjustMenu>(); } if (hexa == null) { hexa = menuParent.hexa; } if (robotParent == null) { robotParent = GameObject.Find("Robots").GetComponent <Transform>(); } }