WebGL适配

This commit is contained in:
ALEXTANG
2023-07-19 15:51:16 +08:00
parent 413f4dcda7
commit 66ef50a9e0
5 changed files with 15 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
using UnityEngine;
#if !UNITY_WEBGL
using UnityEngine;
namespace TEngine
{
@@ -87,4 +88,5 @@ namespace TEngine
BuglyAgent.ConfigDefault(channel = null, version, userID = "Unknow", time = 0);
}
}
}
}
#endif

View File

@@ -109,7 +109,9 @@ namespace TEngine
{
base.Awake();
#if !UNITY_WEBGL
BuglyManager.Instance.Init(Resources.Load<BuglyConfig>("BuglyConfig"));
#endif
GameTime.StartFrame();

View File

@@ -1,4 +1,5 @@
using UnityEngine;
#if !UNITY_WEBGL
using UnityEngine;
namespace TEngine
{
@@ -172,4 +173,5 @@ namespace TEngine
High
}
}
}
}
#endif

View File

@@ -1,3 +1,4 @@
#if !UNITY_WEBGL
// ----------------------------------------
//
// BuglyAgent.cs
@@ -1083,4 +1084,5 @@ public sealed class BuglyAgent
#endregion
}
}
#endif

View File

@@ -9,6 +9,7 @@
//
// ----------------------------------------
//
#if !UNITY_WEBGL
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
@@ -77,4 +78,4 @@ public class BuglyInit : MonoBehaviour
return extras;
}
}
#endif