コード例 #1
0
        public override void AddScripts()
        {
            base.AddScripts();

            AddScript(new AddCutsceneScript(new Level3StartCutScene(ScreenManager, "Data\\Screens\\LevelScreens\\Level3", this), this));

            TransitionToScreenScript<UnderSiegeGameOverScreen<UnderSiegeGameplayScreenLevel1>> onCommandShipDeath = new TransitionToScreenScript<UnderSiegeGameOverScreen<UnderSiegeGameplayScreenLevel1>>(this);
            onCommandShipDeath.CanRunEvent += checkCommandShipDead;
            AddScript(onCommandShipDeath);

            AddCutsceneScript endCutScene = new AddCutsceneScript(new Level3EndCutScene(ScreenManager, "Data\\Screens\\LevelScreens\\Level3", this), this);
            endCutScene.CanRunEvent += endCutScene_CanRunEvent;
            AddScript(endCutScene);

            AddScript(new TransitionToScreenScript<UnderSiegeGameplayScreenLevel4>(this));
        }
コード例 #2
0
        public override void AddScripts()
        {
            base.AddScripts();

            AddDialogBoxScript.defaultPosition = new Vector2(Viewport.Width * 0.75f, Viewport.Height * 0.75f);

            AddScript(new AddCutsceneScript(new Level2StartCutScene(ScreenManager, "Data\\Screens\\LevelScreens\\Level2", this), this));

            AddScript(new RunEventScript(OnAllEnginesBought));
            AddScript(new AddDialogBoxScript("All necessary engines have been constructed.", true, true));
            AddScript(new AddDialogBoxScript("The navigation marker on the overlay should\ndirect us to the nearest UNI exit gate.", true, true));
            AddScript(new RunEventScript(AddDestinationMarker));
            AddScript(new AddDialogBoxScript("Direct control of the ship is achievable\nthrough use of the W, A, S, D\nkeys on the interface input.", true, true));

            TransitionToScreenScript <UnderSiegeGameOverScreen <UnderSiegeGameplayScreenLevel1> > onCommandShipDeath = new TransitionToScreenScript <UnderSiegeGameOverScreen <UnderSiegeGameplayScreenLevel1> >(this);

            onCommandShipDeath.CanRunEvent += checkCommandShipDead;
            AddScript(onCommandShipDeath);

            AddCutsceneScript endCutScene = new AddCutsceneScript(new Level2EndCutScene(ScreenManager, "Data\\Screens\\LevelScreens\\Level2", this), this);

            endCutScene.CanRunEvent += endOfLevelCutscene;
            AddScript(endCutScene);

            AddScript(new TransitionToScreenScript <UnderSiegeGameplayScreenLevel3>(this));
        }