예제 #1
0
    public bool SetCameraView(CameraView cv, bool byUserRequest)
    {
        // The user is not allowed to change camera view in play mode if
        // the camera is in actor-drive mode.
        if (byUserRequest && !editMode && navigationControls.GetCameraView() == CameraView.ActorDriven)
        {
            // TODO: give UI feedback.
            Debug.Log("Can't change camera in play mode because there is a custom camera on.");
            return(false);
        }

        foreach (AvatarMain av in avatars)
        {
            av.OnCameraViewUpdate(cv);
        }
        navigationControls.SetCameraView(cv);

        return(true);
    }
예제 #2
0
 public bool IsYLocked()
 {
     return(navigationControls.GetCameraView() == CameraView.Isometric ||
            navigationControls.GetCameraView() == CameraView.TopDown);
 }