Files
Temp.BattleRoyale.Map.Unity/Assets/GSpawn - Level Designer/Scripts/Math/Probability.cs

14 lines
238 B
C#
Raw Normal View History

2024-05-13 01:28:33 +08:00
#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