Nez.Portable/Utils/Time.cs
/// <summary>
/// Allows to check in intervals. Should only be used with interval values above deltaTime,
/// otherwise it will always return true.
/// </summary>
Allows to check in intervals. Should only be used with interval values above deltaTime,
otherwise it will always return true.
Allows to check in intervals . Should only be used with interval values above deltaTime otherwise it will always return true .
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static bool checkEvery(float interval)
        {
            return (int)(timeSinceSceneLoad / interval) > (int)((timeSinceSceneLoad - deltaTime) / interval);
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static bool checkEvery ( float interval ) { return ( int ) ( timeSinceSceneLoad / interval ) > ( int ) ( ( timeSinceSceneLoad - deltaTime ) / interval ) ; }
Allows to check in intervals.
Allows to check in intervals .
// we subtract deltaTime since timeSinceSceneLoad already includes this update ticks deltaTime
interval
float