protected override IEnumerator IRestartGame() { GameWinLose.ActivateLoseTextEvent(); yield return(new WaitForSeconds(2)); GameWinLose.DisactivateTextEvent(); SceneController.RestartScene(); }
protected override IEnumerator IEndGame() { GameWinLose.ActivateWinTextEvent(); int reward = SpaceMissions.GetSpaceMissionData(SpaceMission).reward; GameReward.ShowRewardEvent(reward); StaticSettings.credits += reward; yield return(new WaitForSeconds(3)); GameWinLose.DisactivateTextEvent(); GameReward.HideRewardEvent(); SceneController.LoadNextStoryScene(); }