public override void EquipItem(AbstractWeapon weapon) { if (currentWeapon != null) { currentWeapon.Drop(); } var weaponHolder = transform.Find("Weapon"); weaponHolder.transform.rotation = new Quaternion(0, 0, 0, 0); currentWeapon = weapon; currentWeapon.Pickup(this); currentWeapon.transform.parent = weaponHolder; currentWeapon.transform.localScale = new Vector3(1, 1, 1); if (currentWeapon.weaponType == WeaponType.PROJECTILE) { gameObject.GetComponentInChildren <UtilityLookAtMouse>().enabled = true; } else { gameObject.GetComponentInChildren <UtilityLookAtMouse>().enabled = false; } }