private void GetMailDatas(UserMailRes res) { GetData <MailModel>().Init(res); _mailPanel = new MailPanel(); _mailPanel.Init(this); _mailPanel.Show(0.5f); }
// Use this for initialization void Start() { instance = this; root = transform.Find("root"); returnBtn = root.Find("return"); Content = root.Find("Scroll View/Viewport/Content"); mailBase = root.Find("MailBase"); mailInfoPanel = transform.Find("mailInfoPanel"); EventInterface.AddOnEvent(returnBtn, Click); account = (Account)KBEngineApp.app.player(); root.DOScale(Vector3.one, 0.5f).SetEase(Ease.OutBack); posY = mailBase.GetComponent <RectTransform> ().rect.height; initMailList(); }
void Awake() { instance = this; }