Example #1
0
 private void Awake()
 {
     instance = this;
     StartCoroutine(SaveAlbumToInfo());
     SaveTimeListToInfo();
     MessageCenter.AddMsgListener(SysDefine.MESSAGE_CheckAndUploadToServer, UploadFile);
 }
Example #2
0
 /// <summary>
 /// 注册,接收消息
 /// </summary>
 /// <param name="messageType"></param>
 /// <param name="handler"></param>
 protected void ReceiveMessage(string messageType, MessageCenter.DealMessageDelivery handler)
 {
     MessageCenter.AddMsgListener(messageType, handler);
 }