/// <summary> /// Sets a quest to a location by name of the quest. The quest's name must match the name given in the inspector! /// </summary> /// <param name="targetQuest"></param> /// <returns>Returns true if the quest was added to the location successfully</returns> /// public void openFromEndOfDay() { if (endOfDayMapState == null) { initEndOfDayState(); } mapMode = endOfDayMapState; MapImage.gameObject.SetActive(true); mapMode.openMapProps(); }
public void mapOpenFromBar(Patron inPatronOnAdventure) { if (deployState == null) { initDeployState(); } mapMode = deployState; patronToGoOnAdventure = inPatronOnAdventure; MapImage.gameObject.SetActive(true); mapMode.openMapProps(); SoundManager.Instance.AddCommand("OpenMap"); notifyObserver(Mediator.ActionIdentifiers.MAP_OPEN); }