// Use this for initialization IEnumerator Start() { //set the button of the item to this button item.button = this; yield return(new WaitForEndOfFrame()); crafting = GameObject.FindGameObjectWithTag("Crafting").GetComponent <uGUICrafting>(); craftingMaterialsCounters = new List <int>(); UpdateText(); }
public void Start() { crafting = GameObject.FindGameObjectWithTag("Crafting").GetComponent <uGUICrafting>(); }