浏览代码

代码整理

guodong 1 年之前
父节点
当前提交
60c90871e6

+ 0 - 1
GameClient/Assets/Game/HotUpdate/Controller/LoginController.cs

@@ -261,7 +261,6 @@ namespace GFGGame
                 return;
             }
             await GameController.PreEnterGameAsync();
-            ViewManager.Hide<ModalStatusView>();
 
             LogServerHelper.SendNodeLog((int)LogNode.OnEnterGame);
         }

+ 0 - 30
GameClient/Assets/Game/HotUpdate/ETCodes/Hotfix/App/Item/ItemHelper.cs

@@ -1,30 +0,0 @@
-using System;
-using GFGGame;
-
-namespace ET
-{
-    public static class ItemHelper
-    {
-        public static async ETTask<int> GetItemAttributeInfos()
-        {
-            M2C_GetItemAttributeInfos m2C_GetItemAttributeInfos = null;
-            Session session = null;
-            try
-            {
-                session = GameGlobal.zoneScene.GetComponent<SessionComponent>().GateSession;
-                m2C_GetItemAttributeInfos = (M2C_GetItemAttributeInfos)await session.Call(new C2M_GetItemAttributeInfos());
-            }
-            catch(Exception e)
-            {
-                Log.Debug(e.ToString());
-                return ErrorCode.ERR_NetWorkError;
-            }
-            if(m2C_GetItemAttributeInfos.Error != ErrorCode.ERR_Success)
-            {
-                return m2C_GetItemAttributeInfos.Error;
-            }
-            ItemDataManager.InitServerDataItemAttribute(m2C_GetItemAttributeInfos.ItemAtrributes);
-            return ErrorCode.ERR_Success;
-        }
-    }
-}

+ 0 - 11
GameClient/Assets/Game/HotUpdate/ETCodes/Hotfix/App/Item/ItemHelper.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 44e2e90e17a11854bbd2334f320a8cfb
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 1
GameClient/Assets/Game/HotUpdate/ETCodes/Hotfix/App/Scene/SceneChangeHelper.cs

@@ -1,5 +1,4 @@
 using GFGGame;
-using static UnityEngine.UI.CanvasScaler;
 
 namespace ET
 {

+ 24 - 1
GameClient/Assets/Game/HotUpdate/ServerProxy/ItemProxy.cs

@@ -1,4 +1,5 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
 using ET;
 
 namespace GFGGame
@@ -54,6 +55,27 @@ namespace GFGGame
             return false;
 
         }
+        public static async ETTask<int> GetItemAttributeInfos()
+        {
+            M2C_GetItemAttributeInfos m2C_GetItemAttributeInfos = null;
+            Session session = null;
+            try
+            {
+                session = GameGlobal.zoneScene.GetComponent<SessionComponent>().GateSession;
+                m2C_GetItemAttributeInfos = (M2C_GetItemAttributeInfos)await session.Call(new C2M_GetItemAttributeInfos());
+            }
+            catch (Exception e)
+            {
+                Log.Debug(e.ToString());
+                return ErrorCode.ERR_NetWorkError;
+            }
+            if (m2C_GetItemAttributeInfos.Error != ErrorCode.ERR_Success)
+            {
+                return m2C_GetItemAttributeInfos.Error;
+            }
+            ItemDataManager.InitServerDataItemAttribute(m2C_GetItemAttributeInfos.ItemAtrributes);
+            return ErrorCode.ERR_Success;
+        }
 
         //设置物品已读
         public static async ETTask<bool> ReqSetItemRead(int itemID)
@@ -79,6 +101,7 @@ namespace GFGGame
             }
             return false;
         }
+
         //使用背包物品
         public static async ETTask<bool> ReqUseItem(int itemID, long count)
         {

+ 1 - 1
GameClient/Assets/Game/Launcher/HotUpdateProxy/HotUpdateCodeLoader.cs

@@ -100,7 +100,7 @@ namespace GFGGame
                 // 加载assembly对应的dll,会自动为它hook。一旦aot泛型函数的native函数不存在,用解释器版本代码
                 LoadImageErrorCode err = RuntimeApi.LoadMetadataForAOTAssembly(dllBytes, mode);
                 handle.Release();
-                Debug.Log($"LoadMetadataForAOTAssembly:{aotDllName}. mode:{mode} ret:{err}");
+                //Debug.Log($"LoadMetadataForAOTAssembly:{aotDllName}. mode:{mode} ret:{err}");
             }
         }
     }