public override void dispose() { base.dispose(); onRefreshModel(-1); _dataLogic = null; }
/** 构造 */ 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); }
public override void init() { base.init(); if (_unit.canFight()) { _dataLogic = _unit.getUnitData().fightDataLogic.avatar; onRefreshModel(_dataLogic.getModelID()); } }