public void Close() { if (HasFlag(MessageFlags.LaunchAdventureOnClose)) { advScreenChanger.Activate(); } shell.Close(); }
public void Depart() { int[] costs = { 0, 0, 0, GameDataManager.Instance.dataStore.nextRandomAdventureAnte, GameDataManager.Instance.dataStore.nextRandomAdventureAnte, GameDataManager.Instance.dataStore.nextRandomAdventureAnte }; if (GameDataManager.Instance.dataStore.adventureLevel >= AdventureSubstageLoader.randomAdventureBaseLevel) { if (GameDataManager.Instance.SpendResourcesIfPossible(costs)) { shell.Close(); screenChanger.Activate(); } else { insufficientResourcesPopup.Open(); } } else { shell.Close(); screenChanger.Activate(); } }
IEnumerator <float> LoseAndPrepareForAdventureExit() { messageBox.Step(BattleMessageType.Loss); yield return(Timing.WaitUntilDone(theater.LoseBattle())); while (theater.processing) { yield return(0f); } yield return(Timing.WaitForSeconds(battleStepLength)); GameDataManager.Instance.BattleEndDataRefresh(); screenChanger.Activate(); }
public void ReturnFromBattle() { shell.Close(); screenChanger.Activate(); }