示例#1
0
    public override void dispose()
    {
        base.dispose();

        onRefreshModel(-1);
        _dataLogic = null;
    }
示例#2
0
    /** 构造 */
    public virtual void construct()
    {
        _isDriveAll = !CommonSetting.isSceneServerDrive;

        (status = new StatusDataLogic()).setParent(this);
        (attribute = new AttributeDataLogic()).setParent(this);
        (cd = new CDDataLogic()).setParent(this);
        (buff = GameC.factory.createBuffDataLogic()).setParent(this);
        (avatar = new AvatarDataLogic()).setParent(this);
    }
示例#3
0
    public override void init()
    {
        base.init();

        if (_unit.canFight())
        {
            _dataLogic = _unit.getUnitData().fightDataLogic.avatar;

            onRefreshModel(_dataLogic.getModelID());
        }
    }