|
@@ -276,7 +276,7 @@ namespace ET
|
|
|
|
|
|
|
|
public static long NewFrameTimer(this TimerComponent self, int type, object args)
|
|
public static long NewFrameTimer(this TimerComponent self, int type, object args)
|
|
|
{
|
|
{
|
|
|
-#if APPS
|
|
|
|
|
|
|
+#if DOTNET
|
|
|
return self.NewRepeatedTimerInner(100, type, args);
|
|
return self.NewRepeatedTimerInner(100, type, args);
|
|
|
#else
|
|
#else
|
|
|
return self.NewRepeatedTimerInner(0, type, args);
|
|
return self.NewRepeatedTimerInner(0, type, args);
|
|
@@ -288,7 +288,7 @@ namespace ET
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
private static long NewRepeatedTimerInner(this TimerComponent self, long time, int type, object args)
|
|
private static long NewRepeatedTimerInner(this TimerComponent self, long time, int type, object args)
|
|
|
{
|
|
{
|
|
|
-#if APPS
|
|
|
|
|
|
|
+#if DOTNET
|
|
|
if (time < 100)
|
|
if (time < 100)
|
|
|
{
|
|
{
|
|
|
throw new Exception($"repeated timer < 100, timerType: time: {time}");
|
|
throw new Exception($"repeated timer < 100, timerType: time: {time}");
|