public void StartGame() { if (StageSelector.Get().LoadStage(firstStage)) { TitleEffect(false); } }
public void StartGame(Stage stage) { if (StageSelector.Get().LoadStage(stage)) { SelectEffect(false); } }
// 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); }
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); }
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); }
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); }
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; } } } }
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 ?? ""; } } } }
// 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); }
public void EndGame() { StageSelector.Get().LoadNextStage(); }
public void StartGameCustom() { StageAchievement.isCreativeMode = true; StageSelector.Get().LoadStage(selectScene, SceneSelector.SceneChangeType.CHANGE_MOVE); TitleEffect(false); }