// Use this for initialization void Start() { Player = GameObject.Find("Player").GetComponent <Player_Manager>(); Upgrade = GetComponent <SpriteRenderer>().sprite; Rupees = GameObject.Find("RupeeCount").GetComponent <RupeeCount>(); Canvas = transform.GetChild(0).gameObject; interactable = true; Upgrade.name = inspectorName; }
// Use this for initialization void Start() { RupeeHUD = GameObject.Find("RupeeCount").GetComponent <RupeeCount>(); ItemAudio = GameObject.Find("Player").GetComponent <Player_Manager>().PlayerInternalAudio; }