forked from sin365/AxibugEmuOnline
修复meta版本被unity6修改的问题,滤镜代码改为unity2020可用版本
This commit is contained in:
parent
94eda481f9
commit
5ecdf999d3
File diff suppressed because it is too large
Load Diff
@ -214,6 +214,8 @@ namespace AxibugEmuOnline.Client
|
|||||||
|
|
||||||
public void ReadyForJson()
|
public void ReadyForJson()
|
||||||
{
|
{
|
||||||
|
prepareCache();
|
||||||
|
|
||||||
m_paramName = m_paramName2ValueJson.Keys.ToList();
|
m_paramName = m_paramName2ValueJson.Keys.ToList();
|
||||||
m_valueJson = m_paramName2ValueJson.Values.ToList();
|
m_valueJson = m_paramName2ValueJson.Values.ToList();
|
||||||
}
|
}
|
||||||
@ -238,8 +240,17 @@ namespace AxibugEmuOnline.Client
|
|||||||
}
|
}
|
||||||
else if (valueType.IsEnum)
|
else if (valueType.IsEnum)
|
||||||
{
|
{
|
||||||
Enum.TryParse(valueType, rawStr,out var enumValue);
|
var names = Enum.GetNames(valueType);
|
||||||
return enumValue;
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -1,2 +1,11 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: b6c80949e93f37f42a1af843fa9d77fa
|
guid: b6c80949e93f37f42a1af843fa9d77fa
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
@ -1,2 +1,11 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 8c9e9868e38e8ea44a0dad03b987cd73
|
guid: 8c9e9868e38e8ea44a0dad03b987cd73
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
Loading…
Reference in New Issue
Block a user