Update ProcedureCodeInit.cs

This commit is contained in:
ALEXTANG
2022-09-03 16:52:57 +08:00
parent 73007437ac
commit 5bfa23bcf9

View File

@@ -32,14 +32,14 @@ namespace TEngine.Runtime
Assembly hotfixAssembly = System.AppDomain.CurrentDomain.GetAssemblies().First(assembly => assembly.GetName().Name == "HotFix");
StartHotfix(hotfixAssembly);
#else
TResources.LoadAsync("Dll/HotFix.dll.bytes", (data =>
TResources.LoadAsync<TextAsset>("Dll/HotFix.dll.bytes", (data =>
{
if (data == null)
{
OnLoadAssetFail();
return;
}
var obj = data.AssetObject as TextAsset;
var obj = data as TextAsset;
if (obj == null)
{