You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 25, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: Scripts/PenetrableListener.cs
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,12 @@
1
+
usingSystem;
1
2
usingSystem.Collections;
2
3
usingSystem.Collections.Generic;
3
4
usingSystem.Linq;
4
5
usingUnityEngine;
5
6
6
7
namespacePenetrationTech{
8
+
9
+
[Obsolete("Currently this feature has been replaced by https://github.com/TextusGames/UnitySerializedReferenceUI with its handy SerializedReferenceButton attribute.")]
@@ -38,7 +38,7 @@ public override void OnInspectorGUI() {
38
38
}
39
39
40
40
DrawDefaultInspector();
41
-
41
+
/*
42
42
if (!EditorGUILayout.DropdownButton(new GUIContent("Add listener"), FocusType.Passive)) {
43
43
return;
44
44
}
@@ -59,7 +59,7 @@ public override void OnInspectorGUI() {
59
59
}
60
60
});
61
61
}
62
-
menu.ShowAsContext();
62
+
menu.ShowAsContext();*/
63
63
}
64
64
}
65
65
#endif
@@ -87,7 +87,7 @@ [SerializeField] [Range(0.001f,5f)] [Tooltip("How lenient we are with penetrator
87
87
privatefloatpenetrationMarginOfError=0.5f;
88
88
[SerializeField][Tooltip("Automate discovery of penetrables, and automatically penetrate with them if some basic conditions are met (roughly the right angle, and distance). Also decouple automatically if basic conditions are met (penetrator is certain distance away).")]
[SerializeReference][Tooltip("Programmable listeners, they can respond to penetrations in a variety of ways. Great for triggering audio and such.")]
90
+
[SerializeReference,SerializeReferenceButton][Tooltip("Programmable listeners, they can respond to penetrations in a variety of ways. Great for triggering audio and such.")]
0 commit comments