// Use this for initialization
 void Start()
 {
     if (returnButton)
     {
         GetComponentInChildren <TextMeshProUGUI>().text = "Return to the " + Areas.GetLocationFormatted(Map.currentPosition);
     }
 }
示例#2
0
    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);
     }
 }