Files
nightclub-arcadia/NightclubArcadia/Assets/Scripts/Skills/Runtime/UnityRollSource.cs
T

18 lines
359 B
C#

using UnityEngine;
namespace NightclubArcadia.Skills
{
public sealed class UnityRollSource : IRollSource
{
public int Roll(int sides)
{
if (sides < 1)
{
throw new System.ArgumentOutOfRangeException(nameof(sides));
}
return Random.Range(1, sides + 1);
}
}
}