miepzerino
2025-04-02 d4552adc9ec0998725e663c47114e6836061ad2c
Assets/Scripts/Prefab/Drilling/Dropable.cs
@@ -1,3 +1,4 @@
using Assets.Scripts.Attributes;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@@ -6,5 +7,10 @@
{
    public bool isDropable = true;
    public Item dropable;
    public int dropAmount = 1;
    [MinMax(1, 10)]
    public Vector2 dropRange = new Vector2(1, 3);
    public int GetRandomDropAmount()
    {
        return Random.Range((int)dropRange.x, (int)dropRange.y + 1);
    }
}