Example #1
0
        public static Timer StartNextFrame(TimerScheduler.Callback callback)
        {
            if (TimerScheduler.IsInitialized)
            {
                return(TimerScheduler.Instance.StartTimer(0.0f, callback, false, true));
            }

            return(Invalid);
        }
Example #2
0
        public static Timer Start(float timeSeconds, TimerScheduler.Callback callback, bool loop = false)
        {
            if (TimerScheduler.IsInitialized)
            {
                return(TimerScheduler.Instance.StartTimer(timeSeconds, callback, loop));
            }

            return(Invalid);
        }