コード例 #1
0
ファイル: UILogicConfig.cs プロジェクト: shineTeam7/home3
 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
ファイル: UIConfig.cs プロジェクト: shineTeam7/home3
    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");
    }