Esempio n. 1
0
 private void GetMailDatas(UserMailRes res)
 {
     GetData <MailModel>().Init(res);
     _mailPanel = new MailPanel();
     _mailPanel.Init(this);
     _mailPanel.Show(0.5f);
 }
Esempio n. 2
0
 // 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();
 }
Esempio n. 3
0
 void Awake()
 {
     instance = this;
 }