using Assets.Scripts; using Assets.Scripts.Apis; using Assets.Scripts.Apis.Models; using Assets.Scripts.UI.Control; using Newtonsoft.Json; using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; public class EditUserController : PFUIPanel { private Button mSaveButton; private PFUIDropdown mSexDropdown; private PFUIDropdown mDayDropdown; private PFUIDropdown mMonthDropdown; private PFUIDropdown mYearDropdown; private Text mIdText; private Text mNameText; private RawImage mHeadImage; private UserApi userApi; private Button mCancelButton; private Button mBackButton; PfUIButton mChangeAvatar; protected override void Awake() { userApi = new UserApi(); mIdText = this.transform.Find("IdText").GetComponent(); mNameText = this.transform.Find("NameText").GetComponent(); var panel = this.transform.Find("Panel"); mSexDropdown = panel.Find("SexDropdown").GetComponent(); mYearDropdown = panel.Find("YearDropdown").GetComponent(); mMonthDropdown = panel.Find("MonthDropdown").GetComponent(); mDayDropdown = panel.Find("DayDropdown").GetComponent(); mSaveButton = this.transform.Find("SaveButton").GetComponent