예제 #1
0
 private void SetScene(GameScene scene)
 {
     this.scene = scene;
     if(scene.kind == Scene.LOAD){
         load = (LoadScene)scene;
     }else if (scene.kind == Scene.INTRO){
         intro = (IntroScene)scene;
     }else if(scene.kind == Scene.ACTION){
         action = (ActionScene)scene;
     }else if(scene.kind == Scene.EDITOR){
         editor = (EditorScene)scene;
     }
 }
예제 #2
0
        private void CustomLoad()
        {
            dataLoader = new DataLoader();
            Global.dataLoader = dataLoader;
            dataLoader.LoadAllContent(contentManager);

            intro = new IntroScene(this);
            action = new ActionScene(this);
            editor = new EditorScene(this);
            input = new InputManager(scene);
            Global.Running = true;

            Global.p = contentManager.Load<Texture2D>("Images/UI/white");
            //MediaPlayer.Play(Content.Load<Song>("Audio/Music/KnuxTheme"));
        }