diff --git a/Editor/EventManagerEditor.cs b/Editor/EventManagerEditor.cs index b4d2361..ba2c24e 100644 --- a/Editor/EventManagerEditor.cs +++ b/Editor/EventManagerEditor.cs @@ -1,7 +1,7 @@ using UnityEditor; using UnityEngine; -namespace Agoxandr.Utils +namespace Utils { [CustomEditor(typeof(EventManager), true)] public class EventManagerEditor : Editor diff --git a/Editor/PackageUpdater.cs b/Editor/PackageUpdater.cs index a8896ba..31d8421 100644 --- a/Editor/PackageUpdater.cs +++ b/Editor/PackageUpdater.cs @@ -2,7 +2,7 @@ using System.IO; using UnityEditor; using UnityEngine; -namespace Agoxandr.Utils +namespace Utils { public class PackgeUpdater { diff --git a/Editor/ReadOnlyFieldDrawer.cs b/Editor/ReadOnlyFieldDrawer.cs index d0e773e..3cc7d15 100644 --- a/Editor/ReadOnlyFieldDrawer.cs +++ b/Editor/ReadOnlyFieldDrawer.cs @@ -1,7 +1,7 @@ using UnityEditor; using UnityEngine; -namespace Agoxandr.Utils +namespace Utils { [CustomPropertyDrawer(typeof(ReadOnlyFieldAttribute))] public class ReadOnlyFieldDrawer : PropertyDrawer diff --git a/Editor/ReflectionProbeVolumeEditor.cs b/Editor/ReflectionProbeVolumeEditor.cs index b46e92b..04fa0f0 100644 --- a/Editor/ReflectionProbeVolumeEditor.cs +++ b/Editor/ReflectionProbeVolumeEditor.cs @@ -1,7 +1,7 @@ using UnityEditor; using UnityEngine; -namespace Agoxandr.Utils +namespace Utils { public class ReflectionProbeVolumeEditor : MonoBehaviour { diff --git a/Editor/SceneViewRotation.cs b/Editor/SceneViewRotation.cs index e8f22f4..339a11c 100644 --- a/Editor/SceneViewRotation.cs +++ b/Editor/SceneViewRotation.cs @@ -1,7 +1,7 @@ using UnityEditor; using UnityEngine; -namespace Agoxandr.Utils +namespace Utils { [InitializeOnLoad] public static class SceneViewRotation diff --git a/Editor/Agoxandr.Utils.Editor.asmdef b/Editor/Utils.Editor.asmdef similarity index 100% rename from Editor/Agoxandr.Utils.Editor.asmdef rename to Editor/Utils.Editor.asmdef diff --git a/Editor/Agoxandr.Utils.Editor.asmdef.meta b/Editor/Utils.Editor.asmdef.meta similarity index 100% rename from Editor/Agoxandr.Utils.Editor.asmdef.meta rename to Editor/Utils.Editor.asmdef.meta diff --git a/Runtime/ArrayExtensions.cs b/Runtime/ArrayExtensions.cs index 0a12efd..b8fa645 100644 --- a/Runtime/ArrayExtensions.cs +++ b/Runtime/ArrayExtensions.cs @@ -1,6 +1,4 @@ -using System; - -namespace Agoxandr.Utils +namespace Utils { public static class ArrayExtensions { diff --git a/Runtime/DefaultMonoBehaviourEditor.cs b/Runtime/DefaultMonoBehaviourEditor.cs index 89d5882..77b43b9 100644 --- a/Runtime/DefaultMonoBehaviourEditor.cs +++ b/Runtime/DefaultMonoBehaviourEditor.cs @@ -2,7 +2,7 @@ using UnityEditor; using UnityEngine; -namespace Agoxandr.Utils +namespace Utils { [CustomEditor(typeof(MonoBehaviour), true)] public class DefaultMonoBehaviourEditor : Editor @@ -22,7 +22,9 @@ namespace Agoxandr.Utils EditorGUI.BeginChangeCheck(); DrawPropertiesExcluding(serializedObject, "m_Script"); if (EditorGUI.EndChangeCheck()) + { serializedObject.ApplyModifiedProperties(); + } } else { diff --git a/Runtime/DefaultScriptableObjectEditor.cs b/Runtime/DefaultScriptableObjectEditor.cs index f311d1d..d00f4f3 100644 --- a/Runtime/DefaultScriptableObjectEditor.cs +++ b/Runtime/DefaultScriptableObjectEditor.cs @@ -2,7 +2,7 @@ using UnityEditor; using UnityEngine; -namespace Agoxandr.Utils +namespace Utils { [CustomEditor(typeof(ScriptableObject), true)] public class DefaultScriptableObjectEditor : Editor diff --git a/Runtime/EventManager.cs b/Runtime/EventManager.cs index 505ad74..315f8d0 100644 --- a/Runtime/EventManager.cs +++ b/Runtime/EventManager.cs @@ -1,6 +1,6 @@ using UnityEngine; -namespace Agoxandr.Utils +namespace Utils { public class EventManager : MonoBehaviour { diff --git a/Runtime/HideScriptField.cs b/Runtime/HideScriptField.cs index ac027a5..5184ac9 100644 --- a/Runtime/HideScriptField.cs +++ b/Runtime/HideScriptField.cs @@ -1,7 +1,7 @@ using System; -namespace Agoxandr.Utils +namespace Utils { [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] - public sealed class HideScriptField : Attribute { } + public sealed class HideScriptField : Attribute { } } \ No newline at end of file diff --git a/Runtime/ReadOnlyFieldAttribute.cs b/Runtime/ReadOnlyFieldAttribute.cs index 06ef1a8..6df264b 100644 --- a/Runtime/ReadOnlyFieldAttribute.cs +++ b/Runtime/ReadOnlyFieldAttribute.cs @@ -1,5 +1,6 @@ using UnityEngine; -namespace Agoxandr.Utils + +namespace Utils { public class ReadOnlyFieldAttribute : PropertyAttribute { } } diff --git a/Runtime/ReflectionProbeVolume.cs b/Runtime/ReflectionProbeVolume.cs index e744ec5..46fb972 100644 --- a/Runtime/ReflectionProbeVolume.cs +++ b/Runtime/ReflectionProbeVolume.cs @@ -1,7 +1,7 @@ using System.Diagnostics; using UnityEngine; -namespace Agoxandr.Utils +namespace Utils { public class ReflectionProbeVolume : MonoBehaviour { diff --git a/Runtime/TimeSince.cs b/Runtime/TimeSince.cs index 92d97ef..b820fbb 100644 --- a/Runtime/TimeSince.cs +++ b/Runtime/TimeSince.cs @@ -1,23 +1,6 @@ -// https://garry.tv/timesince - -//TimeSince ts; - -//void Start() -//{ -// ts = 0; -//} - -//void Update() -//{ -// if (ts > 10) -// { -// DoSomethingAfterTenSeconds(); -// } -//} - using UnityEngine; -namespace Agoxandr.Utils +namespace Utils { public struct TimeSince { @@ -34,3 +17,20 @@ namespace Agoxandr.Utils } } } + +// https://garry.tv/timesince + +//TimeSince ts; + +//void Start() +//{ +// ts = 0; +//} + +//void Update() +//{ +// if (ts > 10) +// { +// DoSomethingAfterTenSeconds(); +// } +//} diff --git a/Runtime/Agoxandr.Utils.asmdef b/Runtime/Utils.asmdef similarity index 100% rename from Runtime/Agoxandr.Utils.asmdef rename to Runtime/Utils.asmdef diff --git a/Runtime/Agoxandr.Utils.asmdef.meta b/Runtime/Utils.asmdef.meta similarity index 100% rename from Runtime/Agoxandr.Utils.asmdef.meta rename to Runtime/Utils.asmdef.meta diff --git a/package.json b/package.json index 71f5d84..c9e00f2 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,15 @@ { - "name": "de.agoxandr.utils", - "version": "2.7.1", + "name": "cyou.shazbot.utils", + "version": "3.0.0", "displayName": "Utils", "description": "Utility useful for almost any project.", "licensesUrl": "https://github.com/Agoxandr/Utils/blob/master/LICENSE.md", "keywords": [ - "utility", - "utils", - "agoxandr" + "utility" ], "author": { "name": "Alexander Filippov", - "email": "agoxandr@gmail.com" + "email": "a.filippov@shazbot.cyou", + "url": "https://shazbot.cyou/" } } \ No newline at end of file