Explorar el Código

去掉几个多余的宏定义

tanghai hace 4 años
padre
commit
a67d20bc7f

+ 0 - 4
Unity/Assets/Mono/Core/Async/ETCancellationToken.cs

@@ -46,11 +46,7 @@ namespace ET
             }
             catch (Exception e)
             {
-#if NOT_UNITY
                 Log.Error(e);
-#else
-                UnityEngine.Debug.LogError(e);
-#endif
             }
         }
     }

+ 0 - 8
Unity/Assets/Mono/Core/ThreadSynchronizationContext.cs

@@ -35,11 +35,7 @@ namespace ET
                 }
                 catch (Exception e)
                 {
-#if NOT_UNITY
                     Log.Error(e);
-#else
-                    UnityEngine.Debug.LogError(e);
-#endif
                 }
             }
         }
@@ -59,11 +55,7 @@ namespace ET
                 }
                 catch (Exception e)
                 {
-#if NOT_UNITY
                     Log.Error(e);
-#else
-                    UnityEngine.Debug.LogError(e);
-#endif
                 }
 
                 return;

+ 1 - 2
Unity/Codes/Model/Core/Object/IdGenerater.cs

@@ -221,9 +221,8 @@ namespace ET
                 {
                     ++this.lastInstanceIdTime; // 借用下一秒
                     this.instanceIdValue = 0;
-#if NOT_UNITY
+
                     Log.Error($"instanceid count per sec overflow: {time} {this.lastInstanceIdTime}");
-#endif
                 }
             }