2023-03-17 23:41:38 -04:00

22 lines
452 B
C#

using System;
namespace JohnsonUtils.Attributes
{
[Serializable]
public struct RangedFloat
{
public float MinValue;
public float MaxValue;
public RangedFloat(float minValue, float maxValue)
{
MinValue = minValue;
MaxValue = maxValue;
}
public float RandomValueInRange()
{
return UnityEngine.Random.Range(MinValue, MaxValue);
}
}
}