Ejemplo n.º 1
0
        /// <summary>
        /// Adds a scene to the internal scene collection
        /// </summary>
        /// <param name="scene">New scene</param>
        private void AddScene(Scene scene)
        {
            this.scenes.Add(scene);
            this.scenes.Sort(
                delegate(Scene p1, Scene p2)
            {
                return(p2.Order.CompareTo(p1.Order));
            });

            scene.Initialize();

            scene.Initialized();

            scene.SetResources();
        }