Пример #1
0
    private void onOpenUI(Message msg)
    {
        MainPlayerUIData dt = new MainPlayerUIData();

        dt.headIcon = "head1";
        this.updateUI(dt);
    }
Пример #2
0
    public override void refreshUI()
    {
        MainPlayerUIData dt = this.data as MainPlayerUIData;

        if (dt != null)
        {
            this.headIcon.sprite = SpriteMgr.Instance.getSprite(dt.headIcon);
        }
        checkTarget(this.targetId);
    }