This commit is contained in:
2026-05-30 09:16:35 +07:00
parent 2f87ce19a7
commit 1c0ee6efb7
4001 changed files with 3363438 additions and 1738 deletions

View File

@@ -0,0 +1,24 @@
using UnityEngine;
namespace Invector.Utils
{
public class vRandomFloat : MonoBehaviour
{
public bool randomValue = true;
[vHideInInspector("randomValue")]
public float min;
public float max;
public bool setOnStart;
public UnityEngine.UI.Slider.SliderEvent onSet;
private void Start()
{
if (setOnStart) Set();
}
// Start is called before the first frame update
public void Set()
{
if (randomValue) onSet.Invoke(Random.Range(min, max));
else onSet.Invoke(max);
}
}
}