//private GameObject Walls; void Start() { generator = GameObject.Find("mazeGenerator").GetComponent <mazeGenerator>(); adjust = GameObject.Find("Main Camera").GetComponent <cameraAdjust>(); //this will make sure that the right camera script is used if (mazeGenerator.FPS) { adjust = GameObject.Find("FPSCamera").GetComponent <cameraAdjust>(); } // Walls = GameObject.Find("wallHolder"); // activateUI = GameObject.Find("UIParent"); }
void Start() { generator = GameObject.Find("mazeGenerator").GetComponent <mazeGenerator>(); }