public override void RestartActiveTrainingSection() { TWTransition.ScreenTransition(TWTransition.TransitionType.DOWN_IN, .5f, () => { DOTween.Complete("Shake"); DOTween.Complete("TLEO_Missile"); GameData.ActiveItem.wasUsed = false; SceneManager.LoadScene("TrainingRoom_Item"); /*TWTransition.ScreenTransition(TWTransition.TransitionType.DOWN_OUT, .5f, () => * { * if (GameData.ActiveItem.ActivateOnStart) * { * GameData.ActiveItem.TakeEffect(); * TrainingUI.instance.UpdateItemImage(); * } * GameData.ActiveItem.wasUsed = false; * CharaData.hp = CharaData.maxhp; * TrainingUI.instance.UpdateLive(); * TrainingUI.instance.UpdateItemImage(); * base.RestartActiveTrainingSection(); * StartDialog(); * });*/ }); }
public void BackToPanelBoss() { GameVariables.DIALOG_START_MESSAGE = "BOSS_PANEL"; TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DOWN_IN, .5f, () => TWLoading.LoadScene("dialogFungus")); TWAudioController.PlaySFX("UI", "transition"); }
private void Start() { TWLoading.OnSuccessLoad(() => { TWTransition.ScreenTransition(TWTransition.TransitionType.DOWN_OUT, 1f, () => OpenPanelRating()); }); }
IEnumerator End() { TimelineManager.instance.Director.Play(); yield return(new WaitForSeconds((float)TimelineManager.instance.Director.duration)); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, 1f, () => TWLoading.LoadScene("Terrorcopter")); }
public void Restart(string name) { GameTime.GlobalTimeScale = 1f; TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => TWLoading.LoadScene(name)); TWAudioController.PlaySFX("UI", "transition"); }
public void BackToMenu() { GameTime.GlobalTimeScale = 1f; TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => TWLoading.LoadScene("EndingScene")); TWAudioController.PlaySFX("UI", "transition"); }
public void BackToMenu() { ItemManager.instance.ItemNull(); GameTime.GlobalTimeScale = 1f; TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DOWN_IN, .5f, () => TWLoading.LoadScene("MainMenu")); TWAudioController.PlaySFX("UI", "transition"); }
public void NextTraining() { TWTransition.ScreenTransition(TWTransition.TransitionType.UP_IN, .5f, () => { SetupTraining(); TWTransition.ScreenTransition(TWTransition.TransitionType.UP_OUT, .5f); }); }
public void PlayGame() { GameData.FirstPlay = true; GameVariables.DIALOG_START_MESSAGE = "MISSION_START"; TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => TWLoading.LoadScene("dialogFungus")); TWAudioController.PlaySFX("UI", "transition"); }
public void EndTimeline() { if (TimelineManager.instance.Director.state != UnityEngine.Playables.PlayState.Playing) { TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, 1f, () => TWLoading.LoadScene("Terrorcopter")); TWAudioController.PlaySFX("UI", "transition"); } }
public void BackToPanelItem() { GameTime.GlobalTimeScale = 1f; GameVariables.DIALOG_START_MESSAGE = "ITEM_PANEL"; TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => TWLoading.LoadScene("dialogFungus")); TWAudioController.PlaySFX("UI", "transition"); }
// Start is called before the first frame update void Start() { TWLoading.OnSuccessLoad(() => { TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_OUT); }); bossIndex = 4; itemIndex = 5; Dialog(); }
private void Start() { TWLoading.OnSuccessLoad(() => { fungusController.Init(); TWTransition.ScreenTransition(TWTransition.TransitionType.DOWN_OUT, .5f); }); ActivateSkipButton(false); instance = this; }
public void ConfirmSelectedBoss() { OpenBossPanel(false); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => { BossListTransition(); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_OUT, .5f, () => { fungusController.NextBlock("Weakness" + activeBoss); }); }); }
public override void RestartActiveTrainingSection() { TWTransition.ScreenTransition(TWTransition.TransitionType.UP_IN, .5f, () => { base.RestartActiveTrainingSection(); if (activeTrainingData != null) { SetDisplay(); } GameVariables.FREEZE_INPUT = true; LaunchStartDialog(); TWTransition.ScreenTransition(TWTransition.TransitionType.UP_OUT, .5f); }); }
// Start is called before the first frame update void Start() { GameTime.GlobalTimeScale = 1; GameVariables.GAME_OVER = false; instance = this; TWLoading.OnSuccessLoad(() => { TWTransition.ScreenTransition(TWTransition.TransitionType.DOWN_OUT, .5f, () => { GameVariables.GAME_FREEZE = false; }); }); PlayBGM(bgm); if (GameData.ActiveItem) { ItemImage(); } }
public void BackToPanelBoss() { GameTime.GlobalTimeScale = 1f; GameVariables.DIALOG_START_MESSAGE = "BOSS_PANEL"; BGMStop(); if (GameTrackRate.BossKilled == 4) { TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => TWLoading.LoadScene("ToBeContinued")); TWAudioController.PlaySFX("UI", "transition"); } else { TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => TWLoading.LoadScene("dialogFungus")); TWAudioController.PlaySFX("UI", "transition"); } }
// Start is called before the first frame update void Start() { if (GameData.ActiveItem) { GameData.ActiveItem.ResetStatusItem(); } //GameData.ActiveBoss = GameData.BossType.UNHOLYCHARIOT; GameTime.GlobalTimeScale = 1; GameVariables.GAME_OVER = false; index = 0; instance = this; TWLoading.OnSuccessLoad(() => { TWTransition.ScreenTransition(TWTransition.TransitionType.DOWN_OUT, .5f, () => { GameVariables.GAME_FREEZE = false; GameVariables.FREEZE_INPUT = false; }); }); ItemImage(); }
void Start() { TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_OUT); GameTime.GlobalTimeScale = 1f; }
public void BacktoPickItem() { GameVariables.DIALOG_START_MESSAGE = "ITEM_PANEL"; GameData.ActiveItem.wasUsed = false; TWTransition.ScreenTransition(TWTransition.TransitionType.DOWN_IN, 1, () => SceneManager.LoadScene("dialogFungus")); }
public void GoToScene(string nameScene, TWTransition.TransitionType type) { TWTransition.ScreenTransition(type, .5f, () => SceneManager.LoadScene(nameScene)); }
public void GoToScene(string nameScene) { TWTransition.ScreenTransition(TWTransition.TransitionType.DOWN_IN, .5f, () => SceneManager.LoadScene(nameScene)); }
public void GoToMainMenu() { TWAudioController.PlaySFX("UI", "click"); TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_IN, .5f, () => TWLoading.LoadScene("MainMenu")); TWAudioController.PlaySFX("UI", "transition"); }
private void Start() { TWTransition.ScreenTransition(TWTransition.TransitionType.DEFAULT_OUT); TWAudioController.PlayBGM("BGM", "MainMenu", TWAudioController.PlayType.TRANSITION); }
public void BacktoPickItem() { GameVariables.DIALOG_START_MESSAGE = "ITEM_PANEL"; TWTransition.ScreenTransition(TWTransition.TransitionType.DOWN_IN, .5f, () => SceneManager.LoadScene("dialogFungus")); }