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 }
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)); }