Exemple #1
0
        private static LoopUntilTimer LoopUntilActionInternal(bool isPersistence, float interval, Func <LoopUntilTimer, bool> loopUntil,
                                                              Action <int> onComplete, Action <float> onUpdate = null, Action onFinished = null,
                                                              bool useRealTime = false, bool executeOnStart = false, Object autoDestroyOwner = null)
        {
            var timer = new LoopUntilTimer(isPersistence, interval, loopUntil, onComplete, onUpdate,
                                           onFinished, useRealTime, executeOnStart, autoDestroyOwner);

            timer.Init();
            return(timer);
        }
Exemple #2
0
 private bool LoopCountUntil(LoopUntilTimer timer)
 {
     return(loopTimes >= loopCount);
 }