示例#1
0
 public void StartGame()
 {
     if (StageSelector.Get().LoadStage(firstStage))
     {
         TitleEffect(false);
     }
 }
示例#2
0
 public void StartGame(Stage stage)
 {
     if (StageSelector.Get().LoadStage(stage))
     {
         SelectEffect(false);
     }
 }
示例#3
0
    // Start is called before the first frame update
    void Start()
    {
        if (SceneSelector.GetCurrentSceneName().Contains("World"))
        {
            var music = MusicController.Get();
            if (music != null)
            {
                music.ChangeSound(music.TitleBGM);
                music.ApplyParamater("Scene", 2f / 2);
            }
        }
        else
        {
            var music = MusicController.Get();
            if (music != null)
            {
                music.ChangeSound(music.TitleBGM);
                music.ApplyParamater("Scene", 1f / 2);
            }
        }

        if (StageSelector.Get() != null && SceneSelector.Get() != null)
        {
            StageSelector.Get().lastWorldMap = SceneSelector.Get().CurrentScene;
        }
        SelectEffect(true);
    }
示例#4
0
    public void MenuWorld()
    {
        var sel = SceneSelector.Get();
        var sta = StageSelector.Get();

        if (sel != null && sta != null)
        {
            sel.LoadScene(sta.lastWorldMap, SceneSelector.SceneChangeType.CHANGE_FADE);
        }
        MenuEffect(false);
    }
示例#5
0
 public void StartGameStory()
 {
     StageAchievement.isCreativeMode = false;
     if (!StageAchievement.IsCleared(firstStage, 0))
     {
         StageSelector.Get().LoadStage(firstStage);
         StageSelector.Get().lastWorldMap = new SceneStage("World1");
     }
     else
     {
         StageSelector.Get().LoadStage(selectScene, SceneSelector.SceneChangeType.CHANGE_MOVE);
     }
     TitleEffect(false);
 }
示例#6
0
    public void StartGame(Stage stage)
    {
        Stage sstage = (stage.story != null /* && !StageAchievement.isCreativeMode*/) ? stage.story : stage;

        if (SceneSelector.GetCurrentSceneName().Contains("World"))
        {
            StageSelector.Get().LoadStage(sstage, SceneSelector.SceneChangeType.CHANGE_FADE);
        }
        else
        {
            StageSelector.Get().LoadStage(sstage, SceneSelector.SceneChangeType.CHANGE_MOVE);
        }
        SelectEffect(false);
    }
示例#7
0
 public void StageAchieveEffect(bool starting)
 {
     if (stageAchieve)
     {
         var text = StageSelector.Get()?.Current?.answer ?? "";
         stageAchieve.GetComponent <Animator>().SetBool("Enabled", starting && text != "");
         if (starting)
         {
             var title = stageAchieve.GetComponentInChildren <TMP_Text>();
             if (title)
             {
                 title.text = text;
             }
         }
     }
 }
示例#8
0
 public void StageChangeEffect(bool starting)
 {
     if (letterBox)
     {
         letterBox.GetComponent <Animator>().SetBool("Enabled", starting);
     }
     if (stageTitle)
     {
         stageTitle.GetComponent <Animator>().SetBool("Enabled", starting);
         if (starting)
         {
             var title = stageTitle.GetComponentInChildren <TMP_Text>();
             if (title)
             {
                 title.text = StageSelector.Get()?.Current?.stageName ?? "";
             }
         }
     }
 }
示例#9
0
    // Start is called before the first frame update
    void Start()
    {
        var sel = SceneSelector.Get();
        var sta = StageSelector.Get();

        if (sel != null && sta != null)
        {
            sta.lastWorldMap = sel.CurrentScene;
        }
        var music = MusicController.Get();

        if (music != null)
        {
            music.ChangeSound(music.TitleBGM);
            music.ApplyParamater("Scene", 0f / 2);
        }

        TitleEffect(true);

        CameraController.Get().Targetter.SetTarget(fixedPin);
    }
示例#10
0
 public void EndGame()
 {
     StageSelector.Get().LoadNextStage();
 }
示例#11
0
 public void StartGameCustom()
 {
     StageAchievement.isCreativeMode = true;
     StageSelector.Get().LoadStage(selectScene, SceneSelector.SceneChangeType.CHANGE_MOVE);
     TitleEffect(false);
 }