Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        dungeonManagerScript = GameObject.FindGameObjectWithTag("DungeonManager").GetComponent("DungeonManager") as DungeonManager;
        uiManagerScript = GameObject.FindGameObjectWithTag("uiManager").GetComponent("UIManager") as UIManager;

        uiManagerScript.InitValues(dungeonManagerScript.width, dungeonManagerScript.height, dungeonManagerScript.minRoomSize, dungeonManagerScript.maxRoomSize,
                                   dungeonManagerScript.chanceOfExtraDoor, false);
        camControls = GameObject.FindGameObjectWithTag("MainCamera").GetComponent("CameraControls") as CameraControls;

        if (Cursor.lockState == CursorLockMode.Locked){
            Cursor.lockState = CursorLockMode.None;
            Cursor.visible = true;
        }
    }