    // Start is called before the first frame update
    void Start()
    {
        hero = FindObjectOfType<Hero>();
        goldText = GetComponent<Text>();
    }

    // Update is called once per frame
    void Update()