Removed name from namespaces.

This commit is contained in:
Alexander Filippov 2021-08-16 04:45:10 +02:00
parent c2bd33729a
commit b0ba9167cf
18 changed files with 39 additions and 39 deletions

View File

@ -1,7 +1,7 @@
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
namespace Agoxandr.Utils namespace Utils
{ {
[CustomEditor(typeof(EventManager), true)] [CustomEditor(typeof(EventManager), true)]
public class EventManagerEditor : Editor public class EventManagerEditor : Editor

View File

@ -2,7 +2,7 @@ using System.IO;
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
namespace Agoxandr.Utils namespace Utils
{ {
public class PackgeUpdater public class PackgeUpdater
{ {

View File

@ -1,7 +1,7 @@
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
namespace Agoxandr.Utils namespace Utils
{ {
[CustomPropertyDrawer(typeof(ReadOnlyFieldAttribute))] [CustomPropertyDrawer(typeof(ReadOnlyFieldAttribute))]
public class ReadOnlyFieldDrawer : PropertyDrawer public class ReadOnlyFieldDrawer : PropertyDrawer

View File

@ -1,7 +1,7 @@
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
namespace Agoxandr.Utils namespace Utils
{ {
public class ReflectionProbeVolumeEditor : MonoBehaviour public class ReflectionProbeVolumeEditor : MonoBehaviour
{ {

View File

@ -1,7 +1,7 @@
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
namespace Agoxandr.Utils namespace Utils
{ {
[InitializeOnLoad] [InitializeOnLoad]
public static class SceneViewRotation public static class SceneViewRotation

View File

@ -1,6 +1,4 @@
using System; namespace Utils
namespace Agoxandr.Utils
{ {
public static class ArrayExtensions public static class ArrayExtensions
{ {

View File

@ -2,7 +2,7 @@
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
namespace Agoxandr.Utils namespace Utils
{ {
[CustomEditor(typeof(MonoBehaviour), true)] [CustomEditor(typeof(MonoBehaviour), true)]
public class DefaultMonoBehaviourEditor : Editor public class DefaultMonoBehaviourEditor : Editor
@ -22,7 +22,9 @@ namespace Agoxandr.Utils
EditorGUI.BeginChangeCheck(); EditorGUI.BeginChangeCheck();
DrawPropertiesExcluding(serializedObject, "m_Script"); DrawPropertiesExcluding(serializedObject, "m_Script");
if (EditorGUI.EndChangeCheck()) if (EditorGUI.EndChangeCheck())
{
serializedObject.ApplyModifiedProperties(); serializedObject.ApplyModifiedProperties();
}
} }
else else
{ {

View File

@ -2,7 +2,7 @@
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
namespace Agoxandr.Utils namespace Utils
{ {
[CustomEditor(typeof(ScriptableObject), true)] [CustomEditor(typeof(ScriptableObject), true)]
public class DefaultScriptableObjectEditor : Editor public class DefaultScriptableObjectEditor : Editor

View File

@ -1,6 +1,6 @@
using UnityEngine; using UnityEngine;
namespace Agoxandr.Utils namespace Utils
{ {
public class EventManager : MonoBehaviour public class EventManager : MonoBehaviour
{ {

View File

@ -1,7 +1,7 @@
using System; using System;
namespace Agoxandr.Utils namespace Utils
{ {
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
public sealed class HideScriptField : Attribute { } public sealed class HideScriptField : Attribute { }
} }

View File

@ -1,5 +1,6 @@
using UnityEngine; using UnityEngine;
namespace Agoxandr.Utils
namespace Utils
{ {
public class ReadOnlyFieldAttribute : PropertyAttribute { } public class ReadOnlyFieldAttribute : PropertyAttribute { }
} }

View File

@ -1,7 +1,7 @@
using System.Diagnostics; using System.Diagnostics;
using UnityEngine; using UnityEngine;
namespace Agoxandr.Utils namespace Utils
{ {
public class ReflectionProbeVolume : MonoBehaviour public class ReflectionProbeVolume : MonoBehaviour
{ {

View File

@ -1,23 +1,6 @@
// https://garry.tv/timesince
//TimeSince ts;
//void Start()
//{
// ts = 0;
//}
//void Update()
//{
// if (ts > 10)
// {
// DoSomethingAfterTenSeconds();
// }
//}
using UnityEngine; using UnityEngine;
namespace Agoxandr.Utils namespace Utils
{ {
public struct TimeSince 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();
// }
//}

View File

@ -1,16 +1,15 @@
{ {
"name": "de.agoxandr.utils", "name": "cyou.shazbot.utils",
"version": "2.7.1", "version": "3.0.0",
"displayName": "Utils", "displayName": "Utils",
"description": "Utility useful for almost any project.", "description": "Utility useful for almost any project.",
"licensesUrl": "https://github.com/Agoxandr/Utils/blob/master/LICENSE.md", "licensesUrl": "https://github.com/Agoxandr/Utils/blob/master/LICENSE.md",
"keywords": [ "keywords": [
"utility", "utility"
"utils",
"agoxandr"
], ],
"author": { "author": {
"name": "Alexander Filippov", "name": "Alexander Filippov",
"email": "agoxandr@gmail.com" "email": "a.filippov@shazbot.cyou",
"url": "https://shazbot.cyou/"
} }
} }