Example #1
0
        public static long NewFrameTimer(this TimerComponent self, int type, object args)
        {
#if NOT_UNITY
            return(self.NewRepeatedTimerInner(100, type, args));
#else
            return(self.NewRepeatedTimerInner(0, type, args));
#endif
        }
Example #2
0
 public static long NewRepeatedTimer(this TimerComponent self, long time, int type, object args)
 {
     if (time < 100)
     {
         Log.Error($"time too small: {time}");
         return(0);
     }
     return(self.NewRepeatedTimerInner(time, type, args));
 }