Beispiel #1
0
        private void LoadWorldScene()
        {
            SceneStorage sceneLoader = new SceneStorage();

            this.world = GameWorld.Create(sceneLoader.Load(), rand);
            this.scene = world.Scene;
        }
Beispiel #2
0
        private void LoadScene()
        {
            selectionContainer.Unselect();

            var storage = new SceneStorage();

            this.scene = storage.Load();

            if (scene != null)
            {
                scene.PhysicsWorld.ContactManager.ContactFilter = (a, b) => false;
            }

            ingameRenderer.Scene = scene;
        }