| Core/GameEngine/Model/TelPartialConfig/PartialVipPrivilegeInfoConfig.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Vip/VipPrivilegeBehaviour.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Vip/VipPrivilegeInfoWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Core/GameEngine/Model/TelPartialConfig/PartialVipPrivilegeInfoConfig.cs
@@ -20,7 +20,7 @@ } if (config.datas != null && config.datas.Length > 0) { var index = level - 1; var index = level; var min = Mathf.Min(index, config.datas.Length - 1); return config.datas[min]; } @@ -35,7 +35,7 @@ { if (config.label != null && config.label.Length > 0) { var index = level - 1; var index = level; var min = Mathf.Min(index, config.label.Length - 1); return config.label[min]; } System/Vip/VipPrivilegeBehaviour.cs
@@ -17,10 +17,10 @@ m_Bottom.gameObject.SetActive(bottom); for (int i = 0; i < m_VipPrivileges.Count; i++) { m_VipPrivileges[i].gameObject.SetActive(i < model.vipMaxLv); if (i < model.vipMaxLv) m_VipPrivileges[i].gameObject.SetActive(i <= model.vipMaxLv); if (i <= model.vipMaxLv) { m_VipPrivileges[i].Display(id, i + 1); m_VipPrivileges[i].Display(id, i); } } } System/Vip/VipPrivilegeInfoWin.cs
@@ -44,7 +44,7 @@ protected override void OnActived() { base.OnActived(); CreateVipElements((int)model.vipMaxLv); CreateVipElements((int)model.vipMaxLv + 1); var configs = VipPrivilegeConfig.GetValues(); CreatePrivilegeElements(configs.Count); @@ -89,10 +89,10 @@ for (int i = 0; i < m_VipLevels.Count; i++) { m_VipLevels[i].gameObject.SetActive(i < model.vipMaxLv); if (i < model.vipMaxLv) m_VipLevels[i].gameObject.SetActive(i <= model.vipMaxLv); if (i <= model.vipMaxLv) { m_VipLevels[i].text = "VIP" + (i + 1); m_VipLevels[i].text = "VIP" + i; } } } @@ -110,6 +110,7 @@ { var go = GameObject.Instantiate(m_VipLevels[0]); go.transform.SetParent(m_ContainerVip); go.transform.localScale = Vector3.one; var instance = go.GetComponent<Text>(); m_VipLevels.Add(instance); }