少年修仙传客户端代码仓库
client_Hale
2018-08-31 eb30f5f208cb3737b7db1cd643267b8f34167bfc
Fixed #382 界面中副手回收逻辑修改
1个文件已修改
11 ■■■■ 已修改文件
UI/Common/UI3DShowHero.cs 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI/Common/UI3DShowHero.cs
@@ -62,6 +62,10 @@
                prefab = InstanceResourcesLoader.LoadModelRes(secondaryId);
                if (prefab)
                {
                    if (secondaryModel)
                    {
                        secondaryModel.SetActive(true);
                    }
                    pool = GameObjectPoolManager.Instance.RequestPool(prefab);
                    pool.Release(secondaryModel);
                }
@@ -305,8 +309,11 @@
                weaponModel = pool.Request();
                LayerUtility.SetLayer(weaponModel, LayerUtility.Player, false);
                var parent = clothesModel.transform.GetChildTransformDeeply(GAStaticDefine.WeaponBindBoneName);
                weaponModel.transform.SetParentEx(parent, Vector3.zero, Quaternion.identity, Vector3.one);
                if (clothesModel)
                {
                    var parent = clothesModel.transform.GetChildTransformDeeply(GAStaticDefine.WeaponBindBoneName);
                    weaponModel.transform.SetParentEx(parent, Vector3.zero, Quaternion.identity, Vector3.one);
                }
            }
            weaponId = newWeapon;