Files
real-shooter/Assets/Scripts/Utils/BoolToInteger.cs
2022-04-25 16:23:25 +07:00

7 lines
135 B
C#

public static class BoolExtension
{
public static int ToInt(this bool _bool)
{
return _bool == true ? 1 : 0;
}
}