Esempio n. 1
0
        public static void TriggerAfterDelay(fakeAction action, float seconds)
        {
            int intSeconds  = (int)Math.Floor(seconds);
            int miliseconds = (int)((seconds - intSeconds) * 1000);
            int hours       = intSeconds / 60;

            intSeconds = intSeconds % 60;

            WaitThenCallClass.Instance.AddCallback(action, new TimeSpan(0, hours, intSeconds, miliseconds));
        }
Esempio n. 2
0
 public static void TriggerAfterDelay(fakeAction action, TimeSpan time)
 {
     WaitThenCallClass.Instance.AddCallback(action, time);
 }