Esempio n. 1
0
        public void Add(string id, BaseCamera camera)
        {
            cameras.Add(id, camera);

            if (activeCamera == null)
            {
                activeCamera = camera;
                activeCameraIndex = cameras.IndexOfKey(id);
            }
        }
Esempio n. 2
0
 public void Clear()
 {
     cameras.Clear();
     activeCamera = null;
     activeCameraIndex = -1;
 }
Esempio n. 3
0
 public void SetActiveCamera(string id)
 {
     activeCameraIndex = cameras.IndexOfKey(id);
     activeCamera = cameras[id];
 }
Esempio n. 4
0
 public void SetActiveCamera(int cameraIndex)
 {
     activeCameraIndex = cameraIndex;
     activeCamera = cameras[cameras.Keys[cameraIndex]];
 }