miepzerino
2025-04-03 5dcd4665ba3c5c12d67cb8df3463e0782772a4db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using Assets.Scripts.Attributes;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
 
public class Dropable : MonoBehaviour
{
    public bool isDropable = true;
    public Item dropable;
    [MinMax(1, 10)]
    public Vector2 dropRange = new Vector2(1, 3);
    public int GetRandomDropAmount()
    {
        return Random.Range((int)dropRange.x, (int)dropRange.y + 1);
    }
}