| System/Realm/RealmBriefBehaviour.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Realm/RealmModel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Realm/RealmStageBehaviour.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Realm/RealmWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/Realm/RealmBriefBehaviour.cs
@@ -12,6 +12,7 @@ [SerializeField] PropertyBehaviour m_ClonePropertyBeha; [SerializeField] Transform m_PropertyRoot; [SerializeField] List<PropertyBehaviour> m_Properties; [SerializeField] Text m_ReikiPoint; [SerializeField] Transform m_ContainerUnlockEquip; [SerializeField] Image m_UnlockEquip; [SerializeField] Button m_Preview; @@ -58,12 +59,15 @@ { m_Properties[i].gameObject.SetActive(false); } m_ReikiPoint.text = model.realmLevelUpReikiPoint.ToString(); } void DisplayEquip() { var level = 0; if (model.IsUnlockEquipRealm(realmLevel, out level)) if (model.IsUnlockEquipRealm(realmLevel, out level) && model.displayRealmLevel >= model.realmEquipDisplayLevel) { m_ContainerUnlockEquip.gameObject.SetActive(true); var config = RealmConfig.Get(realmLevel); System/Realm/RealmModel.cs
@@ -15,6 +15,8 @@ List<List<int>> m_RealmStages = new List<List<int>>(); public int realmMaxLevel { get; private set; } public int realmPoolOpenLevel { get; private set; } public int realmEquipDisplayLevel { get; private set; } public int realmLevelUpReikiPoint { get; private set; } public bool isBossPass { get; private set; } public int realmExpTime { get; private set; } public long startExp { get; private set; } @@ -213,6 +215,12 @@ var funcConfig = FuncConfigConfig.Get("RealmExpTime"); realmExpTime = int.Parse(funcConfig.Numerical1); funcConfig = FuncConfigConfig.Get("RealmEqiupDisplayLevel"); realmEquipDisplayLevel = int.Parse(funcConfig.Numerical1); funcConfig = FuncConfigConfig.Get("LVUPAddPoint"); realmLevelUpReikiPoint = int.Parse(funcConfig.Numerical3); } public bool TryGetRealmProperty(int level, out Dictionary<int, int> propertyDict) System/Realm/RealmStageBehaviour.cs
@@ -13,6 +13,7 @@ [SerializeField] Transform m_ContainerSelect; [SerializeField] Image m_SelectIcon; [SerializeField] UIEffect m_Effect; [SerializeField] UIEffect m_PracticeEffect; [SerializeField] Button m_Select; public int realmLevel { get; private set; } @@ -35,6 +36,7 @@ DisplayBase(); DisplaySelect(); DisplayPracticeEffect(); DisplayEffect(false); } @@ -51,6 +53,21 @@ { var config = RealmConfig.Get(realmLevel); m_SelectIcon.SetSprite(StringUtility.Contact("RealmSelectBottom_", config.Quality)); } } void DisplayPracticeEffect() { if (model.displayRealmLevel + 1 == realmLevel) { if (!m_PracticeEffect.IsPlaying) { m_PracticeEffect.Play(); } } else { m_PracticeEffect.StopImediatly(); } } @@ -95,6 +112,7 @@ private void SelectRealmRefresh() { DisplaySelect(); DisplayPracticeEffect(); } private void OnSelect() System/Realm/RealmWin.cs
@@ -272,6 +272,12 @@ void DisplayUnlockEquip() { m_ContainerUnlockEquip.gameObject.SetActive(false); if (model.displayRealmLevel < model.realmEquipDisplayLevel) { return; } var stage = model.GetRealmStage(model.displayRealmLevel); List<int> realms = null; if (model.TryGetRealmStages(stage, out realms))