Example #1
0
    // Use this for initialization
    void Start()
    {
        // generate cave
        caveGenerator = GetComponent <CaveGenerator>();
        caveGenerator.GenerateCave();

        // generate player
        player = caveGenerator.GeneratePlayer();
        cameraController.player = player.gameObject; // set camera to follow player

        string[] percepts = caveGenerator.GetCaveInfluence(curRoom.row, curRoom.col);
        PrintPercepts(percepts);
    }