コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        void Start()
        {
            _config = new CSConfig();

            if (_config == null)
            {
                Debug.LogError("CSConfig cannot be loaded. This script will not run properly");
            }

            LoadTables();
        }
コード例 #4
0
        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();
        }
コード例 #5
0
        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();
        }
コード例 #6
0
 private void OnEnable()
 {
     config = new CSConfig();
     paths  = config.GetList();
 }