Exemple #1
0
        /*
         * public void ToggleLightsInScene()
         * {
         *  if (_isLightInScene) RemoveLightsFromScene();
         *  else AddLightsToScene();
         * }
         */
        public void AddLightsToScene()
        {
            if (_isLightInScene)
            {
                return;
            }

            _scene.AddLight(_lightLeft);
            _scene.AddLight(_lightRight);
            _scene.AddLight(_lightUp);
            _scene.AddLight(_lightDown);
            _scene.AddLight(_lightBack);
            _scene.AddLight(_lightFront);
            _isLightInScene = true;
        }