// Use this for initialization void Start() { // // Connect pickup script with Currency //GameObject moneyScriptGO = GameObject.FindWithTag("GoldCoins"); _currency = GameObject.FindWithTag("GameController").GetComponent <Currency>(); invScript = GameObject.FindWithTag("GameController").GetComponent <InventoryChris>(); // I connect this script with the WeaponSwitching script GameObject wSwitchGO = GameObject.FindWithTag("WeaponSW"); _wswitch = wSwitchGO.GetComponent <WeaponSwitcsing>(); }
// Use this for initialization void Start() { vendorUI.SetActive(false); script = GameObject.FindWithTag("GameController").GetComponent <Currency>(); invScript = GameObject.FindWithTag("GameController").GetComponent <InventoryChris>(); }