Beispiel #1
0
        protected override void OnAddedToScene()
        {
            base.OnAddedToScene();

            // Auto-activate first camera
            Scene.AddCamera(this);
        }
Beispiel #2
0
        private void _PrepareCameras(Scene scene, SceneActor moveableObject)
        {
            foreach (KeyValuePair <String, Camera> cameraInfo in _GetCameras(moveableObject))
            {
                scene.AddCamera(cameraInfo.Key, cameraInfo.Value);
            }

            scene.SetCamera("Constant");
        }