Files
BITFALL/Assets/Plugins/GSpawn - Level Designer/Scripts/Math/Probability.cs
2024-08-11 16:16:31 +08:00

14 lines
238 B
C#

#if UNITY_EDITOR
using UnityEngine;
namespace GSpawn
{
public static class Probability
{
public static bool evalChance(float chance)
{
return Random.Range(0.0f, 1.0f) < chance;
}
}
}
#endif