private void OnEnable() { _config = new CSConfig(); if (_config == null) { Debug.LogError("CSConfig cannot be loaded. This script will not run properly"); } bodyStrucTable.LoadStructures(); bodyStrucTable.LoadSkinSlots(); bodySubType.LoadTable(); bodyStrucList = bodyStrucTable.GetList(); bodyModel.LoadList(); bodyModelList = bodyModel.GetList(); System.Array.Resize(ref bodyModelOptions, bodyModelList.Count); for (int i = 0; i < bodyModelList.Count; i++) { bodyModelOptions[i] = bodyModelList[i].Name; } skinTable.LoadSkinsList(); listSkins = skinTable.GetSkinList(); skinTable.LoadSlotsList(); }
private void OnEnable() { _config = new CSConfig(); if (_config == null) { Debug.LogError("CSConfig cannot be loaded. This script will not run properly"); } eyeTable.LoadTable(); eyeTable.LoadObjectList(); eyesList = eyeTable.GetList(); System.Array.Resize(ref eyesOptions, eyesList.Count); for (int i = 0; i < eyesList.Count; i++) { eyesOptions [i] = eyesList [i].Name; } eyeSkinTable.LoadSkinsTable(); eyeSkinTable.LoadMaterialList(); eyeSkinsList = eyeSkinTable.GetSkinList(); }
void Start() { _config = new CSConfig(); if (_config == null) { Debug.LogError("CSConfig cannot be loaded. This script will not run properly"); } LoadTables(); }
private void OnEnable() { _config = new CSConfig(); if (_config == null) { Debug.LogError("CSConfig cannot be loaded. This script will not run properly"); } eyeTable.LoadTable(); eyeTable.LoadObjectList(); eyesList = eyeTable.GetList(); }
private void OnEnable() { _config = new CSConfig(); if (_config == null) { Debug.LogError("CSConfig cannot be loaded. This script will not run properly"); } bodyStrucTable.LoadStructures(); bodyStrucTable.LoadSkinSlots(); bodySubType.LoadTable(); bodyStrucList = bodyStrucTable.GetList(); System.Array.Resize(ref bodyStructOptions, bodyStrucList.Count); for (int i = 0; i < bodyStrucList.Count; i++) { bodyStructOptions [i] = bodyStrucList[i].Name; } eyeTable.LoadTable(); eyesList = eyeTable.GetList(); System.Array.Resize(ref optEyes, eyesList.Count + 1); for (int i = 1; i <= eyesList.Count; i++) { optEyes [i] = eyesList [i - 1].Name; } bodySubType.LoadTable(); bodySubtList = bodySubType.GetList(); bodyModelTable.LoadList(); GetModelsList(); }
private void OnEnable() { config = new CSConfig(); paths = config.GetList(); }