void OnTriggerEnter2D(Collider2D other) { if (other.tag == "Player") { if (this.type == ItemType.Gear) { SoundManagerScript.Instance.PlaySFX(SoundManagerScript.AudioClipID.SFX_PLAYERPICKUPGEAR); Destroy(gameObject); playerInvent.AddGear(value); } // if(this.type == ItemType.Potion) // { // if (playerProperties.currentHealth < playerProperties.startingHealth) // { // SoundManagerScript.Instance.PlaySFX(SoundManagerScript.AudioClipID.SFX_PLAYERPICKUPGEAR); // Destroy(gameObject); // playerProperties.currentHealth += 1; // } // } } }