Compatible with Unity2018

兼容Unity2018版本
This commit is contained in:
hevinci
2022-05-05 22:03:35 +08:00
parent c196cd84d3
commit 2ab045658b
5 changed files with 63 additions and 49 deletions

View File

@@ -199,9 +199,7 @@ namespace YooAsset.Editor
}
private List<Type> GetEncryptionServicesClassTypes()
{
TypeCache.TypeCollection collection = TypeCache.GetTypesDerivedFrom<IEncryptionServices>();
List<Type> classTypes = collection.ToList();
return classTypes;
return EditorTools.GetAssignableTypes(typeof(IEncryptionServices));
}
private IEncryptionServices CreateEncryptionServicesInstance()
{