Skip to content

Commit 36dc112

Browse files
author
Cippo
committed
few adjustments
1 parent 46cb3f9 commit 36dc112

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

InterfaceReference/Scripts/Attributes/Expose.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
*/
44

55
using CippSharp.Interfaces;
6-
using UnityEditor;
76
using UnityEngine;
87

8+
#if UNITY_EDITOR
9+
using UnityEditor;
10+
#endif
11+
912
namespace CippSharp.Interfaces
1013
{
1114
public class ExposeAttribute : PropertyAttribute
@@ -19,7 +22,7 @@ public class ExposeAttribute : PropertyAttribute
1922
namespace CippSharpEditor.Interfaces
2023
{
2124
/// <summary>
22-
/// Custom drawer of TypeFilterAttribute.
25+
/// Custom drawer of ExposeAttribute.
2326
/// </summary>
2427
[CustomPropertyDrawer(typeof(ExposeAttribute))]
2528
public class ExposeAttributeDrawer : PropertyDrawer

InterfaceReference/Scripts/Attributes/TypeFilter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using CippSharp.Interfaces;
88
using UnityEngine;
99
using Object = UnityEngine.Object;
10+
1011
#if UNITY_EDITOR
1112
using UnityEditor;
1213
#endif
@@ -119,7 +120,7 @@ private void PreliminaryCheck(SerializedProperty property, Type[] requiredTypes)
119120
}
120121
else
121122
{
122-
Debug.LogWarning("You must assign a gameObject that have at one component of the required types that you have specified.");
123+
Debug.LogWarning("You must assign a GameObject that has at least one component of the required types that you have specified.");
123124
}
124125
}
125126
}

InterfaceReference/Scripts/EditorGUIUtils.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Author: Alessandro Salani (Cippman)
33
*/
44

5-
65
using UnityEngine;
76
#if UNITY_EDITOR
87
using UnityEditor;

InterfaceReference/Scripts/Examples/ExposedInterfaceReference.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
/*
2+
* Author: Alessandro Salani (Cippman)
3+
*/
4+
5+
using System;
26
using UnityEngine;
37

48
namespace CippSharp.Interfaces.Examples

0 commit comments

Comments
 (0)