Пример #1
0
 protected override void afterReadConfig()
 {
     if (hasPrefab)
     {
         resourceNameT = BaseGameUtils.getUIModelResourceID(name + "UILogic", false);
     }
 }
Пример #2
0
    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();
    }
Пример #3
0
    protected override void afterReadConfig()
    {
        resourceNameT = BaseGameUtils.getUIModelResourceID(name + "UI", true);

        modalColorT = Color.blue;
    }
Пример #4
0
    public override void init()
    {
        base.init();

        _damageResourceID = BaseGameUtils.getUIModelResourceID("damageNum");
    }