mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update ProcedureCodeInit.cs
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user