// Use this for initialization void Start() { // Linking RDC = GameObject.FindGameObjectWithTag("RecipeDirectoryController").GetComponent <RecipeDirectoryController>(); IC = GameObject.FindGameObjectWithTag("InventoryController").GetComponent <InventoryController>(); Button btn = GetComponent <Button> (); btn.onClick.AddListener(ShowRecipes); }
// Use this for initialization void Start() { // Linking RDC = GameObject.FindGameObjectWithTag("RecipeDirectoryController").GetComponent <RecipeDirectoryController>(); IC = GameObject.FindGameObjectWithTag("InventoryController").GetComponent <InventoryController> (); LC = GameObject.FindGameObjectWithTag("LabController").GetComponent <LabController> (); SC = GameObject.FindGameObjectWithTag("Currency").GetComponent <ShopCurrency> (); SlotOne = GameObject.FindGameObjectWithTag("RightPanel").transform.GetChild(0).gameObject; SlotTwo = GameObject.FindGameObjectWithTag("RightPanel").transform.GetChild(2).gameObject; Button btn = GetComponent <Button> (); btn.onClick.AddListener(Merge); }