/// <summary> /// 起動時初期化 /// </summary> /// <param name="setting">レイヤー設定データ</param> public void BootInit(AdvEngine engine, AdvLayerSetting setting) { this.engine = engine; allGruop.Clear(); foreach( AdvLayerSettingData.LayerType type in Enum.GetValues(typeof(AdvLayerSettingData.LayerType) )) { AdvGraphicGroup group = new AdvGraphicGroup(type, setting, this); allGruop.Add(group); } }
//起動時の初期化 internal AdvGraphicGroup( AdvLayerSettingData.LayerType type, AdvLayerSetting setting, AdvGraphicManager manager ) { this.type = type; foreach (var item in setting.List) { if (item.Type == type) { AdvGraphicLayer layer = UtageToolKit.AddChildGameObjectComponent<AdvGraphicLayer>(manager.transform, item.Name); layer.Init(manager,item); layers.Add(layer); if (item.IsDefault) defaultLayer = layer; } } }