1
This commit is contained in:
@@ -90,10 +90,16 @@ public class UIHome_BY_VIPPanel : SubUIBase
|
||||
for (int i = 0; i < btn_LeaveItemParent.childCount; i++)
|
||||
{
|
||||
var tog = btn_LeaveItemParent.GetChild(i).GetComponent<Toggle>();
|
||||
bool isCurrent = vipConfigs[i].level == vipLevel;
|
||||
if (vipConfigs[i].level== vipLevel)
|
||||
{
|
||||
tog.SetIsOnWithoutNotify(true);
|
||||
//tog.isOn = true;
|
||||
|
||||
// 不触发事件,仅同步显示
|
||||
tog.SetIsOnWithoutNotify(isCurrent);
|
||||
}
|
||||
//bool isCurrent = vipConfigs[i].level == vipLevel;
|
||||
|
||||
//// 不触发事件,仅同步显示
|
||||
//tog.SetIsOnWithoutNotify(isCurrent);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,7 +197,11 @@ public class UIHome_BY_VIPPanel : SubUIBase
|
||||
if (level <= 7) return 1;
|
||||
return 2;
|
||||
}
|
||||
|
||||
protected override void OnHide()
|
||||
{
|
||||
base.OnHide();
|
||||
Destroy(this.gameObject);
|
||||
}
|
||||
private void ShowGiftItems(List<GiftConfig> gifts, Transform parent)
|
||||
{
|
||||
for (int i = parent.childCount - 1; i >= 0; i--)
|
||||
|
||||
Reference in New Issue
Block a user