示例#1
0
    void Start()
    {
        notifications = FindObjectOfType <ReturnNotifications>();

        if (!MiscData.unlockedBuildings.Contains("tavern"))
        {
            MiscData.unlockedBuildings.Add("tavern");
        }

        if (!MiscData.unlockedBuildings.Contains("dungeon_entrance"))
        {
            MiscData.unlockedBuildings.Add("dungeon_entrance");
        }
    }
示例#2
0
    private void Awake()
    {
        returnNotifications = FindObjectOfType <ReturnNotifications>();
        foreach (StoryMission mission in allStoryMissions)
        {
            storyMissionDatabase.Add(mission.missionID, mission);
        }

        StartCoroutine(updateAfterEndOfFrame());

        if (MiscData.missionID != null && (MiscData.finishedTutorial == true || MiscData.dungeonLevelUnlocked > 1))
        {
            returnNotifications.activateNotifications();
        }
        else
        {
            returnNotifications.closeNotifications();
        }
    }
示例#3
0
 void Start()
 {
     returnNotifications = FindObjectOfType <ReturnNotifications>();
     playerShip          = GameObject.Find("PlayerShip");
     loadDeathDialogue();
 }