|
@@ -1,32 +0,0 @@
|
|
|
-using System.Collections;
|
|
|
-using System.Collections.Generic;
|
|
|
-using UnityEngine;
|
|
|
-
|
|
|
-public class Main : MonoBehaviour
|
|
|
-{
|
|
|
- // Start is called before the first frame update
|
|
|
- void Start()
|
|
|
- {
|
|
|
-
|
|
|
- BuglyAgent.ConfigDebugMode(true);
|
|
|
- // 注册日志回调,替换使用 'Application.RegisterLogCallback(Application.LogCallback)'注册日志回调的方式
|
|
|
- // BuglyAgent.RegisterLogCallback (CallbackDelegate.Instance.OnApplicationLogCallbackHandler);
|
|
|
-
|
|
|
-#if UNITY_IPHONE || UNITY_IOS
|
|
|
- BuglyAgent.InitWithAppId (BuglyAppIDForiOS);
|
|
|
-#elif UNITY_ANDROID
|
|
|
- BuglyAgent.InitWithAppId("766c5bdb0f");
|
|
|
-#endif
|
|
|
- // 如果你确认已在对应的iOS工程或Android工程中初始化SDK,那么在脚本中只需启动C#异常捕获上报功能即可
|
|
|
- BuglyAgent.EnableExceptionHandler();
|
|
|
-
|
|
|
- GameObject go = null;
|
|
|
- go.name = "";
|
|
|
- }
|
|
|
-
|
|
|
- // Update is called once per frame
|
|
|
- void Update()
|
|
|
- {
|
|
|
-
|
|
|
- }
|
|
|
-}
|