Exemple #1
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();
    }
Exemple #2
0
 private string[] UnboxGoals(TextBaseGoals TextBaseGoals)
 {
     string[] Goals = new string[TextBaseGoals.goals.Length];
     for (int w = 0; w < Goals.Length; ++w)
     {
         TextBaseGoals.Goal goal = TextBaseGoals.goals[w];
         string             s    = string.Format("{0} №{1}\n\n{2}\n",
                                                 TextBaseGoals.missionnames[goal.missionnameid],
                                                 goal.goalid,
                                                 goal.header);
         for (int i = 0; i < goal.texts.Length; ++i)
         {
             s += goal.texts[i] + "\n";
         }
         s += string.Format("\n{0}\n{1}\n\n{2}\n\t+{3} {4}",
                            TextBaseGoals.fieldname,
                            TextBaseGoals.fielddescriptions[goal.fielddescriptionid],
                            TextBaseGoals.reward,
                            SpaceMissions.GetSpaceMissionData(w).reward,
                            TextBaseGoals.rewardtext);
         Goals[w] = s;
     }
     return(Goals);
 }