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 namespace TEngine
{ {
@@ -88,3 +89,4 @@ namespace TEngine
} }
} }
} }
#endif

View File

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

View File

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

View File

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

View File

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