private void OnGUI()
        {
            EditorGUILayout.LabelField("设置Lua文件加密Key:(至少16位,不足自动填充0)");
            string _keyLua = EditorGUILayout.TextField(PersistenceData.GetPrefsData("CRYPT_KEY", "abcdefghijklmnop12345678"));

            while (_keyLua.Length < 16)
            {
                _keyLua += "0";
            }
            PersistenceData.SavePrefsData("CRYPT_KEY", _keyLua);
        }
Пример #2
0
        private void GetUserSetting()
        {
            useMVC = PersistenceData.GetPrefsDataBool("CREATE_MODULE_USE_MVC");
            string _creaters = PersistenceData.GetPrefsData("CREATE_MODULE_CREATER");

            if (string.IsNullOrEmpty(_creaters))
            {
                creaters = Developer.未知;
            }
            else
            {
                creaters = (Developer)System.Enum.Parse(typeof(Developer), _creaters);
            }
        }