zhaoyang 2 years ago
parent
commit
22465d086e

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightSingleScoreView.cs

@@ -83,7 +83,7 @@ namespace GFGGame
 
             // _ui.m_loaRole.texture = _nTexture;//EquipDataCache.cacher.FightRoleRes;
             ET.Log.Debug("Screen:" + UnityEngine.Screen.width + "  " + UnityEngine.Screen.height + "   _nTexture:" + _nTexture.width + "   " + _nTexture.height);
-            _ui.m_imgRole.SetSize(UnityEngine.Screen.width, UnityEngine.Screen.height);
+            _ui.m_imgRole.SetSize(GRoot.inst.width, GRoot.inst.height);
             _ui.m_imgRole.texture = _nTexture;
 
             _ui.m_btnSpeedUp.visible = EquipDataCache.cacher.autoPlay;
@@ -195,7 +195,7 @@ namespace GFGGame
             {
                 GetCurStar(out int star, out Transition transition);
 
-                _ui.m_comRoleResult.m_comRole.m_imgRole.SetSize(UnityEngine.Screen.width, UnityEngine.Screen.height);
+                _ui.m_comRoleResult.m_comRole.m_imgRole.SetSize(GRoot.inst.width, GRoot.inst.height);
                 _ui.m_comRoleResult.m_comRole.m_imgRole.texture = _nTexture;
                 _ui.m_comRoleResult.m_c1.selectedIndex = 0;
                 _ui.m_LoaMask.touchable = true;

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/MainStory/StroyFightResultView.cs

@@ -81,9 +81,9 @@ namespace GFGGame
 
             NTexture nTexture = new NTexture(EquipDataCache.cacher.RoleTextuex);
 
-            _ui.m_ComRoleResult.m_comRole.m_imgRole.alpha = 1;
-            _ui.m_ComRoleResult.m_comRole.m_imgRole.SetSize(UnityEngine.Screen.width, UnityEngine.Screen.height);
+            _ui.m_ComRoleResult.m_comRole.m_imgRole.SetSize(GRoot.inst.width, GRoot.inst.height);
             _ui.m_ComRoleResult.m_comRole.m_imgRole.texture = nTexture;
+            _ui.m_ComRoleResult.m_comRole.m_imgRole.alpha = 1;
 
             _ui.m_comResult.m_c1.selectedIndex = _resultData.Star;
             _ui.m_comResult.m_txtScore.text = "" + _resultData.Score;