| Core/GameEngine/Model/Config/TreasureConfig.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Core/GameEngine/Model/Config/TreasureConfig.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| UI/Common/UI3DTreasureExhibition.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Core/GameEngine/Model/Config/TreasureConfig.cs
@@ -1,6 +1,6 @@ //-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Tuesday, September 18, 2018 // [ Date ]: Tuesday, November 27, 2018 //-------------------------------------------------------- using UnityEngine; @@ -34,7 +34,8 @@ public int EffectID { get ; private set ; } public string[] Verse; public int ShowNetGotEffect { get ; private set ; } public int PreferredStage { get ; private set ; } public int PreferredStage { get ; private set ; } public int UIScale { get ; private set ; } public override string getKey() { @@ -105,7 +106,9 @@ ShowNetGotEffect=IsNumeric(rawContents[22]) ? int.Parse(rawContents[22]):0; PreferredStage=IsNumeric(rawContents[23]) ? int.Parse(rawContents[23]):0; PreferredStage=IsNumeric(rawContents[23]) ? int.Parse(rawContents[23]):0; UIScale=IsNumeric(rawContents[24]) ? int.Parse(rawContents[24]):0; } catch (Exception ex) { Core/GameEngine/Model/Config/TreasureConfig.cs.meta
@@ -1,6 +1,6 @@ fileFormatVersion: 2 guid: 607f2341c6f1e3e468b7eb233bc91ff2 timeCreated: 1537237950 timeCreated: 1543290277 licenseType: Pro MonoImporter: serializedVersion: 2 UI/Common/UI3DTreasureExhibition.cs
@@ -55,10 +55,13 @@ m_ShowCamera.enabled = true; m_TreasureId = _treasureId; treasureModel = instance; instance.transform.SetParentEx(m_ShowPoint, Vector3.zero, Quaternion.identity, Vector3.one); instance.SetActive(true); var config = Config.Instance.Get<TreasureConfig>(_treasureId); var scale = (config == null || config.UIScale == 0) ? 100 : config.UIScale; instance.transform.SetParentEx(m_ShowPoint, Vector3.zero, Quaternion.identity, Vector3.one * ((float)scale / 100)); instance.SetActive(true); var mountPoint = treasureModel.transform.GetChildTransformDeeply(EFFECT_BONE); if (mountPoint == null) {