forked from cgvr/DeltaVR
deltavr multiplayer 2.0
This commit is contained in:
18
Assets/FishNet/Runtime/Utility/Extension/Bool.cs
Normal file
18
Assets/FishNet/Runtime/Utility/Extension/Bool.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
namespace FishNet.Utility.Extension
|
||||
{
|
||||
public static class BooleanExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts a boolean to an integer.
|
||||
/// </summary>
|
||||
/// <param name="b"></param>
|
||||
/// <returns></returns>
|
||||
public static int ToInt(this bool b)
|
||||
{
|
||||
return (b) ? 1 : 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user