Exemple #1
0
    internal void Initialize(int missionCollectionID, int firstMissionID, int count)
    {
        GoalText.enabled = true;

        firstMission = firstMissionID;
        endMission   = firstMission + count - 1;
        goalNow      = firstMission;

        EntityPreviousMission.SetActive(false);
        PreviousMissionImage.interactable = false;

        if (count == 1)
        {
            EntityNextMission.SetActive(false);
            NextMissionImage.interactable = false;
        }
        string collectionName;

        Goals = GameText.GetBaseGoalsEvent(out goalName, out collectionName);
        GoalCollectionText.text = collectionName + " " + (missionCollectionID + 1);
        GoalNowText.text        = goalName + " №1";

        LoadGoal(goalNow);
    }