/// <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); }
private void initEndOfDayState() { endOfDayMapState = endOfDayMapStateScript; Debug.Log("This has been hit" + endOfDayMapStateScript); }
private void initDeployState() { registerSelfToMediator(); // I don't know if this is the best place to put this, I might just bite the bullet and throw in a start. deployState = deployStateScript; }