initial commit

This commit is contained in:
2026-10-12 21:28:47 +01:00
commit 6dd11d33ae
11551 changed files with 2353518 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using UnityEngine;
public class WeaponPickup : PickupItem
{
[Header("Weapon Unlock Settings")]
[SerializeField] private int weaponSlotIndex = 1;
protected override bool CanCollect(GameObject player)
{
var weaponsController = player.GetComponent<WeaponsController>() ?? player.GetComponentInChildren<WeaponsController>();
return weaponsController != null;
}
protected override void ApplyPickupEffect(GameObject player)
{
var weaponsController = player.GetComponent<WeaponsController>() ?? player.GetComponentInChildren<WeaponsController>();
if (weaponsController != null)
{
weaponsController.EquipWeapon(weaponSlotIndex);
}
}
}