47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
|
|
using System.ComponentModel;
|
|
using Framework;
|
|
using Gameplay;
|
|
using PhxhSDK;
|
|
|
|
public partial class SROptions
|
|
{
|
|
#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();
|
|
}
|
|
} |