public static bool IsNestedHashIntervalTick(this Thing t, int outerInterval, int approxInnerInterval) { int num = Mathf.Max(Mathf.RoundToInt((float)approxInnerInterval / (float)outerInterval), 1); return(t.HashOffsetTicks() / outerInterval % num == 0); }
public static bool IsHashIntervalTick(this Thing t, int interval) { return(t.HashOffsetTicks() % interval == 0); }