// Use this for initialization void Start() { if (returnButton) { GetComponentInChildren <TextMeshProUGUI>().text = "Return to the " + Areas.GetLocationFormatted(Map.currentPosition); } }
void Start() { string prefix = SceneManager.GetActiveScene().name; if (prefix == "Overworld" || prefix == "Dungeon") { title.text = prefix; } else { title.text = Areas.GetLocationFormatted(null) + " - " + prefix; } }
public void SetLocation(string location) { this.location = location; currentName.text = Areas.GetLocationFormatted(location); if (Areas.cleared[location]) { shop.gameObject.SetActive(true); investigate.gameObject.SetActive(true); Areas.currentShop = Areas.shops[location]; } else { shop.gameObject.SetActive(false); investigate.gameObject.SetActive(false); } }