示例#1
0
    public override void OnPlayerInteracting(PlayerInteract player)
    {
        if (dispenser.ResourceAvailable)
        {
            dispenser.TakeResource();

            player.PickupResource(dispenser.ResourceType);
        }
    }