Exemple #1
0
    //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");
    }
Exemple #2
0
 void Start()
 {
     generator = GameObject.Find("mazeGenerator").GetComponent <mazeGenerator>();
 }