修复meta版本被unity6修改的问题,滤镜代码改为unity2020可用版本

This commit is contained in:
ALIENJACK\alien 2024-12-06 17:45:05 +08:00
parent 94eda481f9
commit 5ecdf999d3
4 changed files with 313 additions and 1127 deletions

View File

@ -214,6 +214,8 @@ namespace AxibugEmuOnline.Client
public void ReadyForJson()
{
prepareCache();
m_paramName = m_paramName2ValueJson.Keys.ToList();
m_valueJson = m_paramName2ValueJson.Values.ToList();
}
@ -238,8 +240,17 @@ namespace AxibugEmuOnline.Client
}
else if (valueType.IsEnum)
{
Enum.TryParse(valueType, rawStr,out var enumValue);
return enumValue;
var names = Enum.GetNames(valueType);
var values = Enum.GetValues(valueType);
for (int i = 0; i < names.Length; i++)
{
if (names[i].Equals(rawStr))
{
return values.GetValue(i);
}
}
return null;
}
else
{

View File

@ -1,2 +1,11 @@
fileFormatVersion: 2
guid: b6c80949e93f37f42a1af843fa9d77fa
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,2 +1,11 @@
fileFormatVersion: 2
guid: 8c9e9868e38e8ea44a0dad03b987cd73
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: