コード例 #1
0
    protected override IEnumerator IRestartGame()
    {
        GameWinLose.ActivateLoseTextEvent();
        yield return(new WaitForSeconds(2));

        GameWinLose.DisactivateTextEvent();
        SceneController.RestartScene();
    }
コード例 #2
0
    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();
    }