Exemple #1
0
    //监听消息回调
    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;
        }
    }
Exemple #2
0
 public TestProxy() : base(NAME)
 {
     cInfo = CharaterInfo.ShareInfo;
 }