Jelajahi Sumber

屏蔽一些log

大爷 1 tahun lalu
induk
melakukan
fb9c258af3

+ 2 - 2
Unity/Assets/Scripts/Codes/Hotfix/Client/Router/RouterAddressComponentSystem.cs

@@ -36,7 +36,7 @@ namespace ET.Client
             // 打乱顺序
             RandomGenerator.BreakRank(self.Info.Routers);
             
-            self.WaitTenMinGetAllRouter().Coroutine();
+            //self.WaitTenMinGetAllRouter().Coroutine();
         }
         
         // 等10分钟再获取一次
@@ -80,4 +80,4 @@ namespace ET.Client
             return new IPEndPoint(ipAddress, int.Parse(ss[1]));
         }
     }
-}
+}

+ 1 - 1
Unity/Assets/Scripts/Codes/Hotfix/Client/battle/unit/BattleActor.cs

@@ -59,7 +59,7 @@ public class BattleActor : BattlePlayer
 
     private void OnSkillChanged(ZoneUnit.SkillOption op, ZoneUnit unit, int baseSkillID, params int[] skills)
     {
-        Log.Debug("OnSkillChanged> {0}, base:{1},skills:{2}", op, baseSkillID, skills != null ? skills.Length : 0);
+        //Log.Debug("OnSkillChanged> {0}, base:{1},skills:{2}", op, baseSkillID, skills != null ? skills.Length : 0);
         //SkillOption.Init的不用管,SkillBar.InitSkill直接从UserData读
         //SkillOpetion.Active不明意义,未处理
         if (op == ZoneUnit.SkillOption.Reset)

+ 3 - 1
Unity/Assets/Scripts/Codes/Hotfix/Client/battle/unit/BattleUnit.cs

@@ -145,10 +145,12 @@ public class BattleUnit : BattleObject
                 //Log.Debug($"tower({ZUnit.ObjectID}@{ZUnit.Info.Name}) hp: {ZUnit.HP}/{ZUnit.MaxHP}");
                 if(bFirstShow1 && pg < 50)
                 {
+                    bFirstShow1 = false;
                     EventSystem.Instance.Publish(BattleMsgEvent.Static.Clone("家园宝塔受到了怪物的猛烈攻击"));
                 }
-                else if(bFirstShow1 && pg < 10)
+                else if(bFirstShow2 && pg < 10)
                 {
+                    bFirstShow2 |= false;
                     EventSystem.Instance.Publish(BattleMsgEvent.Static.Clone("家园宝塔快要支撑不住了,宝宝们快来守护"));
                 }
             }

+ 0 - 1
Unity/Assets/Scripts/Codes/HotfixView/Client/UI/UICommonDialog1.cs

@@ -8,7 +8,6 @@ namespace ET.Client
     {
         public static async ETTask<GComponent> Show(string _title, string _msg, Action okcb, Action cancelcb)
         {
-            Log.Debug("show dialog1.");
             var view = await UIHelper.Create("CommonDialog");
 
             var title = view.GetChild("txt_title");

+ 0 - 1
Unity/Assets/Scripts/Codes/HotfixView/Client/UI/UILogin/AppStartInitFinish_CreateLoginUI.cs

@@ -15,7 +15,6 @@ namespace ET.Client
 
         protected override async ETTask Run(Scene scene, EventType.AppStartInitFinish args)
         {
-            Log.Debug("to load login ui.");
             var view = await UIHelper.Create("Login");
             InitLogin(scene, view);
 

+ 1 - 0
Unity/Assets/Scripts/Codes/Model/Share/Module/Message/OpcodeHelper.cs

@@ -14,6 +14,7 @@ namespace ET
             BattleServerMsg.BattleEventPush,
             BattleServerMsg.BattleEventPushToServer,
             OuterMessage.G2C_RankNotify,
+            OuterMessage.C2G_AddUnitsToMap,
             ushort.MaxValue, // ActorResponse
         };