Removed Jetbrains.Annotations
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
using JetBrains.Annotations;
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
using System;
|
||||
|
||||
namespace PashaBibko.Pacore.Attributes
|
||||
{
|
||||
[MeansImplicitUse, AttributeUsage(validOn: AttributeTargets.Field)]
|
||||
[AttributeUsage(validOn: AttributeTargets.Field)]
|
||||
public sealed class DetectInspectorChangesAttribute : PropertyAttribute
|
||||
{
|
||||
public string ActionName { get; }
|
||||
|
||||
public DetectInspectorChangesAttribute([NotNull] string function)
|
||||
public DetectInspectorChangesAttribute(string function)
|
||||
{
|
||||
ActionName = function;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
using JetBrains.Annotations;
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace PashaBibko.Pacore.Attributes
|
||||
{
|
||||
[MeansImplicitUse, AttributeUsage(AttributeTargets.Method)]
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public class InspectorCallableAttribute : Attribute
|
||||
{
|
||||
public string ButtonName { get; }
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
using JetBrains.Annotations;
|
||||
using UnityEngine;
|
||||
using System;
|
||||
|
||||
namespace PashaBibko.Pacore.Attributes
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
[MeansImplicitUse, AttributeUsage(validOn: AttributeTargets.Field)]
|
||||
[AttributeUsage(validOn: AttributeTargets.Field)]
|
||||
public sealed class InspectorReadOnlyAttribute : PropertyAttribute
|
||||
{
|
||||
public string Name { get; }
|
||||
@@ -15,11 +13,4 @@ namespace PashaBibko.Pacore.Attributes
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
#else // #if UNITY_EDITOR
|
||||
[MeansImplicitUse, AttributeUsage(validOn: AttributeTargets.Field)]
|
||||
public sealed class InspectorReadOnlyAttribute : Attribute
|
||||
{
|
||||
public InspectorReadOnlyAttribute(string _name = null) { }
|
||||
}
|
||||
#endif // UNITY_EDITOR
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using JetBrains.Annotations;
|
||||
using UnityEngine;
|
||||
using System;
|
||||
|
||||
@@ -8,7 +7,7 @@ namespace PashaBibko.Pacore.Threading
|
||||
public static partial class ThreadSafe
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Try([NotNull] Action action, Action final = null)
|
||||
public static void Try(Action action, Action final = null)
|
||||
{
|
||||
try { action(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user