Beispiel #1
0
 /// <summary>
 /// 配置表更新后(配置替换)
 /// </summary>
 public override void onReloadConfig()
 {
     _mUnitUseLogics.forEachValue(v =>
     {
         v.getFightLogic().reloadConfig();
     });
 }
Beispiel #2
0
    public override void onDaily()
    {
        IntObjectMap <FuncTool> dic = getFuncToolDic(FuncToolType.RoleGroup);

        dic.forEachValue(v =>
        {
            PlayerRoleGroupTool tool = (PlayerRoleGroupTool)v;

            tool.getRoleGroupDic().forEachValue(v2 =>
            {
                v2.onDaily();
            });
        });
    }
Beispiel #3
0
    protected virtual void doShowScene()
    {
        _elementDic = _currentSceneData.elements;
        _elementDicByObj.clear();

        _elementDic.forEachValue(v =>
        {
            makeElementModel(v);

            if (v.gameObject != null)
            {
                _elementDicByObj.put(v.gameObject, v);
            }
            else
            {
                Ctrl.errorLog("不支持的单位类型", v.config.type);
            }
        });
    }