移除不用的脚本
This commit is contained in:
@@ -2,12 +2,9 @@
|
||||
{
|
||||
public static class SRDebugApi
|
||||
{
|
||||
|
||||
#if !UNITY_EDITOR
|
||||
public const string PrivacyPolicyUrl = "https://www.stompyrobot.uk/tools/srdebugger/privacy-policy";
|
||||
|
||||
public const string Protocol = "https://";
|
||||
#else
|
||||
public const string Protocol = "http://";
|
||||
#endif
|
||||
|
||||
public const string EndPoint = Protocol + "srdebugger.stompyrobot.uk";
|
||||
|
||||
|
||||
@@ -101,11 +101,7 @@
|
||||
|
||||
yield return _webRequest.SendWebRequest();
|
||||
|
||||
#if UNITY_2018 || UNITY_2019
|
||||
bool isError = _webRequest.isNetworkError;
|
||||
#else
|
||||
bool isError = _webRequest.result == UnityWebRequest.Result.ConnectionError || _webRequest.result == UnityWebRequest.Result.DataProcessingError;
|
||||
#endif
|
||||
bool isError = _webRequest.result != UnityWebRequest.Result.Success;
|
||||
|
||||
if (isError)
|
||||
{
|
||||
|
||||
@@ -15,6 +15,19 @@ namespace SRDebugger.Internal
|
||||
get { return Settings.Instance.EnableBugReporter && !string.IsNullOrWhiteSpace(Settings.Instance.ApiKey); }
|
||||
}
|
||||
|
||||
public string PrivacyPolicyMessage
|
||||
{
|
||||
get
|
||||
{
|
||||
return "By submitting this bug report you agree to our <color=#57B3F4>privacy policy</color>.";
|
||||
}
|
||||
}
|
||||
|
||||
public string PrivacyPolicyUrl
|
||||
{
|
||||
get { return SRDebugApi.PrivacyPolicyUrl; }
|
||||
}
|
||||
|
||||
public void Submit(BugReport report, Action<BugReportSubmitResult> onComplete, IProgress<float> progress)
|
||||
{
|
||||
BugReportApi.Submit(report, Settings.Instance.ApiKey, onComplete, progress);
|
||||
|
||||
@@ -84,10 +84,11 @@ namespace SRDebugger
|
||||
/// <param name="setter">Method to set the value of the property (can be null if read-only)</param>
|
||||
/// <param name="category">Category to display the option in.</param>
|
||||
/// <param name="sortPriority">Sort priority to arrange the option within the category.</param>
|
||||
/// <param name="attributes">Attributes that apply to this option (e.g. NumberRange)</param>
|
||||
/// <returns>The created option definition.</returns>
|
||||
public static OptionDefinition Create<T>(string name, Func<T> getter, Action<T> setter = null, string category = "Default", int sortPriority = 0)
|
||||
public static OptionDefinition Create<T>(string name, Func<T> getter, Action<T> setter = null, string category = "Default", int sortPriority = 0, Attribute[] attributes = null)
|
||||
{
|
||||
return new OptionDefinition(name, category, sortPriority, PropertyReference.FromLambda(getter, setter));
|
||||
return new OptionDefinition(name, category, sortPriority, PropertyReference.FromLambda(getter, setter, attributes));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
private static IOptionsService _optionsService;
|
||||
private static IDockConsoleService _dockConsoleService;
|
||||
|
||||
#if UNITY_EDITOR && ((!UNITY_2017 && !UNITY_2018 && !UNITY_2019) || UNITY_2019_3_OR_NEWER)
|
||||
#if UNITY_EDITOR
|
||||
[UnityEngine.RuntimeInitializeOnLoadMethod(UnityEngine.RuntimeInitializeLoadType.SubsystemRegistration)]
|
||||
public static void RuntimeInitialize()
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace SRDebugger.Internal
|
||||
namespace SRDebugger.Internal
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -22,15 +20,9 @@ namespace SRDebugger.Internal
|
||||
|
||||
switch (Application.platform)
|
||||
{
|
||||
#if UNITY_5 || UNITY_5_3_OR_NEWER
|
||||
case RuntimePlatform.WSAPlayerARM:
|
||||
case RuntimePlatform.WSAPlayerX64:
|
||||
case RuntimePlatform.WSAPlayerX86:
|
||||
#else
|
||||
case RuntimePlatform.MetroPlayerARM:
|
||||
case RuntimePlatform.MetroPlayerX64:
|
||||
case RuntimePlatform.MetroPlayerX86:
|
||||
#endif
|
||||
return true;
|
||||
|
||||
default:
|
||||
@@ -55,7 +47,7 @@ namespace SRDebugger.Internal
|
||||
return false;
|
||||
}
|
||||
|
||||
var e = Object.FindObjectOfType<EventSystem>();
|
||||
var e = Object.FindFirstObjectByType<EventSystem>();
|
||||
|
||||
// Check if EventSystem is in the scene but not registered yet
|
||||
if (e != null && e.gameObject.activeSelf && e.enabled)
|
||||
|
||||
Reference in New Issue
Block a user