// Use this for initialization void Start() { createWorld = GameObject.Find("WorldCreator").GetComponent<CreateWorld2>(); if (!startGUI) { //demoMenu.enabled = false; StartDemo(); } EventSystem.current.SetSelectedGameObject(startButton.gameObject); }
// Use this for initialization void Awake() { createWorld = this.GetComponent<CreateWorld2>(); }
// Use this for initialization void Awake() { createWorld = GameObject.Find("WorldCreator").GetComponent<CreateWorld2>(); }