Esempio n. 1
0
        public static PlayerAssemblePartData InitData()
        {
            PlayerAssemblePartData data = new PlayerAssemblePartData();
            var configData = Config.ConfigData.AssembleConfig.assemblePartMainType;

            for (int i = 0; i < configData.Count; i++)
            {
                if (!data.AssemblePartMainTypeDic.ContainsKey(configData[i].Type))
                {
                    data.AssemblePartMainTypeDic.Add(configData[i].Type, configData[i]);
                }
            }
            data._currentUnlockPartList = AssembleModule.GetAllUnlockPartTypeID();
            return(data);
        }