public override void OnPlayerInteracting(PlayerInteract player) { if (dispenser.ResourceAvailable) { dispenser.TakeResource(); player.PickupResource(dispenser.ResourceType); } }