Beispiel #1
0
 void OnMessageEvent(UEvent uEvent)
 {
     if (onEvent != null)
     {
         onEvent(new UEvent {
             eventType = uEvent.eventType, owner = this, sender = uEvent.sender, value = uEvent.value
         });
     }
 }
Beispiel #2
0
        void OnClick(UEvent uEvent)
        {
            var box = (UBaseMessageBox)uEvent.owner;

            StartCoroutine(workers[box.message.messageType].hider(box));
        }