private void onOpenUI(Message msg) { MainPlayerUIData dt = new MainPlayerUIData(); dt.headIcon = "head1"; this.updateUI(dt); }
public override void refreshUI() { MainPlayerUIData dt = this.data as MainPlayerUIData; if (dt != null) { this.headIcon.sprite = SpriteMgr.Instance.getSprite(dt.headIcon); } checkTarget(this.targetId); }