NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/Debug/SROptions.Report.cs

50 lines
1.4 KiB
C#
Raw Normal View History

2023-10-19 15:00:19 +08:00

using System.ComponentModel;
using Framework;
using Gameplay;
using PhxhSDK;
public partial class SROptions
{
2023-10-31 19:26:23 +08:00
2024-07-23 17:21:09 +08:00
#if SDK_CRASHSIGHT
2023-10-19 15:00:19 +08:00
#if UNITY_ANDROID
[Category("Report"), DisplayName("模拟崩溃-Java")]
public void TestCrashJava()
{
var helper = SDKManager.GetSingleton().GetSdkHelper(SDKManager.SdkName.CrashSight) as CrashSightSdkHelper;
helper.TestCrashJava();
}
#endif
#if UNITY_IOS
[Category("Report"), DisplayName("模拟崩溃-iOS")]
public void TestOcCrash()
{
var helper = SDKManager.GetSingleton().GetSdkHelper(SDKManager.SdkName.CrashSight) as CrashSightSdkHelper;
helper?.TestOcCrash();
}
#endif
[Category("Report"), DisplayName("模拟崩溃-Native")]
public void TestCrashNative()
{
var helper = SDKManager.GetSingleton().GetSdkHelper(SDKManager.SdkName.CrashSight) as CrashSightSdkHelper;
helper?.TestNativeCrash();
}
[Category("Report"), DisplayName("模拟Exception")]
public void TestCrashException()
{
var helper = SDKManager.GetSingleton().GetSdkHelper(SDKManager.SdkName.CrashSight) as CrashSightSdkHelper;
helper?.TestCrashException();
}
[Category("Report"), DisplayName("模拟Unity崩溃")]
public void TestCrash()
{
var helper = SDKManager.GetSingleton().GetSdkHelper(SDKManager.SdkName.CrashSight) as CrashSightSdkHelper;
helper?.TestCrash();
}
2023-10-31 19:26:23 +08:00
#endif
2023-10-19 15:00:19 +08:00
}