修复bug
This commit is contained in:
parent
bf6b7c057a
commit
9b5c8ae120
@ -96,7 +96,6 @@ namespace QFramework.Example
|
||||
Transform title = obj.transform.Find("Title");
|
||||
var name = title.Find("Name").GetComponent<TextMeshProUGUI>();
|
||||
name.text = item.Name;
|
||||
var arrow = title.Find("Arrow").transform;
|
||||
Image highIcon = title.Find("HighIcon").GetComponent<Image>();
|
||||
Color highColor = new Color(25f / 255f, 224f / 255f, 224f / 255f);
|
||||
GameObject subContent = obj.transform.Find("SubContent").gameObject;
|
||||
@ -104,7 +103,6 @@ namespace QFramework.Example
|
||||
subContent.gameObject.SetActive(false);
|
||||
btn.name = btns.Count.ToString();
|
||||
btns.Add(btn);
|
||||
arrow.gameObject.SetActive(subContent.transform.childCount > 0);
|
||||
btn.onClick.AddListener(() =>
|
||||
{
|
||||
subContent.SetActive(!subContent.activeSelf);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user