Ejemplo n.º 1
0
    void showLandmark(string key)
    {
        Debug.Log("Show landmark: " + key);

        UI ui = GetComponent <UI>();

        ui.setText(key);

        Landmark landmark = landmarks[key];

        // -> camera
        // -> camera target
        // todo : animate main camera to new camera position
        string     container  = landmark.getContainer();
        MoveCamera moveCamera = GetComponent <MoveCamera>();

        moveCamera.UpdateLocation(container);

        Debug.Log("Landmark object:");
        Debug.Log(container);
        Debug.Log(landmark.getName());
    }