// Start is called before the first frame update private void Start() { mItemManager = GameObject.FindObjectOfType <ItemManager>(); mHeroPotionEffect = GameObject.FindObjectOfType <HeroPotionEffect>(); mHealth = GameObject.FindObjectOfType <Health>(); weaponGlow = GameObject.FindObjectOfType <WeaponGlow>(); InitInventory(); }
// Start is called before the first frame update void Start() { health = GetComponent <Health>(); weaponGlow = GetComponent <WeaponGlow>(); }