Artemis.Engine.TimeableObject.DuringIntervals C# (CSharp) Метод

DuringIntervals() публичный Метод

Periodically alternates between being true for the given interval of time, and then false for the next interval of time, continuing indefinitely.
public DuringIntervals ( double interval, double start, double end = Double.PositiveInfinity ) : bool
interval double
start double
end double
Результат bool
        public bool DuringIntervals(double interval, double start = 0, double end = Double.PositiveInfinity)
        {
            return DuringOrAt(start, end) && (ElapsedTime - start) % (2 * interval) < interval;
        }

Same methods

TimeableObject::DuringIntervals ( int interval, int start, int end = Int32.MaxValue ) : bool