protected override void afterReadConfig() { if (hasPrefab) { resourceNameT = BaseGameUtils.getUIModelResourceID(name + "UILogic", false); } }
public override void init() { base.init(); _camera = (_mainCameraTool = _scene.camera.mainCamera).camera; _resourceID = BaseGameUtils.getUIModelResourceID(getUIModelName()); _gameObject = AssetPoolControl.getAssetAndIncrease(AssetPoolType.UnitHead, _resourceID); if (_model == null) { _model = toCreateModel(); } if (_model != null) { _model.init(_gameObject); } (_transform = _gameObject.transform).SetParent(_scene.show.getUnitHeadRoot(), false); if (_model != null) { initModel(); } initShow(); refreshHeight(); }
protected override void afterReadConfig() { resourceNameT = BaseGameUtils.getUIModelResourceID(name + "UI", true); modalColorT = Color.blue; }
public override void init() { base.init(); _damageResourceID = BaseGameUtils.getUIModelResourceID("damageNum"); }