private void OnTriggerEnter(Collider other) { if (other.gameObject.tag != "Player") { return; } Fighter fighter = other.GetComponent <Fighter>(); if (fighter.GetIsArmed()) { fighter.DestroyWeapon(); } if (isSpell) { fighter.EquipSpell(spell); } else { fighter.EquipWeapon(weapon); } StartCoroutine(HideCollectable(respawnTime)); }