Explorar o código

联盟技能特效

zhaoyang %!s(int64=2) %!d(string=hai) anos
pai
achega
451fc8ad62

+ 3 - 3
GameClient/Assets/Game/HotUpdate/Views/League/LeagueSkillUpView.cs

@@ -207,15 +207,15 @@ namespace GFGGame
             item.m_holder.visible = isLock && canActive;
             if (isLock && canActive)
             {
-                GameObject gameObject;
-                GoWrapper wrapper;
+                GameObject gameObject = null;
+                GoWrapper wrapper = null;
                 if (_gameObjects.Count > index)
                 {
                     gameObject = _gameObjects[index];
                     wrapper = _wrappers[index];
                 }
                 string resPath = ResPathUtil.GetViewEffectPath("ui_league", "tea_nolearn");
-                SceneController.AddObjectToView(null, null, item.m_holder, resPath, out gameObject, out wrapper);
+                SceneController.AddObjectToView(gameObject, wrapper, item.m_holder, resPath, out gameObject, out wrapper);
 
                 if (_gameObjects.Count <= index)
                 {