init
This commit is contained in:
commit
c7d8c303a6
499 changed files with 2349700 additions and 0 deletions
21
Assets/ABI.CCK/Scripts/Editor/CCK_CVRToggleStateTriggerEditor.cs
Executable file
21
Assets/ABI.CCK/Scripts/Editor/CCK_CVRToggleStateTriggerEditor.cs
Executable file
|
@ -0,0 +1,21 @@
|
|||
using ABI.CCK.Components;
|
||||
using UnityEditor;
|
||||
|
||||
namespace ABI.CCK.Scripts.Editor
|
||||
{
|
||||
[CustomEditor(typeof(CVRToggleStateTrigger))]
|
||||
public class CCK_CVRToggleStateTriggerEditor : UnityEditor.Editor
|
||||
{
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
var triggers = ((CVRToggleStateTrigger) target).GetComponents<CVRToggleStateTrigger>();
|
||||
|
||||
if (triggers.Length > 1)
|
||||
{
|
||||
EditorGUILayout.HelpBox("Having multiple Triggers on the same GameObject will lead to unpredictable behavior!", MessageType.Error);
|
||||
}
|
||||
|
||||
base.OnInspectorGUI();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue