//监听消息回调 public override void HandleNotification(PureMVC.Interfaces.INotification notification) { switch (notification.Name) { case NotificationConst.LevelChange: //改变界面 CharaterInfo cInfo = CharaterInfo.ShareInfo; levelText.text = "LV:" + cInfo.Level.ToString(); hpText.text = "HP:" + cInfo.Hp.ToString(); Debug.Log("name:" + cInfo.Name + " level:" + cInfo.Level + " hp:" + cInfo.Hp); break; default: break; } }
public TestProxy() : base(NAME) { cInfo = CharaterInfo.ShareInfo; }