Ejemplo n.º 1
0
    private void Start()
    {
        ButtonTriggerListener listen = ButtonTriggerListener.GetListener(getBtn);

        listen.onClick = go => {
            GetEmail();
        };

        MessageDispatcher.AddListner(transform.name, o =>
        {
            EmailStruct email = (EmailStruct)o;
            senderHead.sprite = email.senderHead;
            AttachImg.sprite  = email.attachImg;
            senderId.text     = email.senderId;
            content.text      = email.content;
            state.text        = email.state;
            timer.text        = email.Timer;
        });
    }
Ejemplo n.º 2
0
 private void Awake()
 {
     MessageDispatcher.AddListner(this);
 }