using System; using System.Collections; using System.Collections.Generic; using Api; using Plugins.CxShine.page; using Plugins.CxShine.UIUtil; using UI; using UI.Common; using UI.Hall; using Unity.VisualScripting; using UnityEngine; using UnityEngine.UI; public class UpdateInfoComp : MonoBehaviour { public Text NickName; public InputField NameInput; public Text UserId; public Image Avatar; public Transform AvatarsContainer; public GameObject AvatarItem; private string _avatar; private void Start() { initAvatars(); RefreshSelfUI(); } private void initAvatars() { ContainerUtil.RemoveAllChild(this, AvatarsContainer); for (int i = 0; i < 20; i++) { int a = i; var o = Instantiate(AvatarItem, AvatarsContainer, false); var innerImage = o.GetComponent().GetChild(0) .GetComponent(); o.GetOrAddComponent