From ebec7ad83e712b2d95390dc11afad04cbf6158af Mon Sep 17 00:00:00 2001 From: Mike Nisbet Date: Thu, 14 Nov 2024 17:56:14 +0000 Subject: [PATCH] lint --- Editor/Components/BanterAssetBundleEditor.cs | 6 ++--- .../Components/BanterAttachedObjectEditor.cs | 6 ++--- Editor/Components/BanterAudioSourceEditor.cs | 6 ++--- Editor/Components/BanterBillboardEditor.cs | 6 ++--- Editor/Components/BanterBoxColliderEditor.cs | 6 ++--- Editor/Components/BanterBrowserEditor.cs | 6 ++--- .../Components/BanterCapsuleColliderEditor.cs | 6 ++--- .../Components/BanterColliderEventsEditor.cs | 6 ++--- .../BanterConfigurableJointEditor.cs | 6 ++--- Editor/Components/BanterGLTFEditor.cs | 6 ++--- Editor/Components/BanterGeometryEditor.cs | 6 ++--- Editor/Components/BanterGrabHandleEditor.cs | 6 ++--- Editor/Components/BanterHeldEventsEditor.cs | 6 ++--- Editor/Components/BanterInvertedMeshEditor.cs | 6 ++--- Editor/Components/BanterKitItemEditor.cs | 6 ++--- Editor/Components/BanterMaterialEditor.cs | 6 ++--- Editor/Components/BanterMeshColliderEditor.cs | 6 ++--- Editor/Components/BanterMirrorEditor.cs | 6 ++--- .../Components/BanterPhysicMaterialEditor.cs | 6 ++--- Editor/Components/BanterPortalEditor.cs | 6 ++--- Editor/Components/BanterRigidbodyEditor.cs | 6 ++--- .../Components/BanterSphereColliderEditor.cs | 6 ++--- Editor/Components/BanterStreetViewEditor.cs | 6 ++--- Editor/Components/BanterSyncedObjectEditor.cs | 6 ++--- Editor/Components/BanterTextEditor.cs | 6 ++--- Editor/Components/BanterTransformEditor.cs | 6 ++--- Editor/Components/BanterVideoPlayerEditor.cs | 6 ++--- Editor/Components/BanterWorldObjectEditor.cs | 6 ++--- .../Scripts/Character/BanterPlayerEvents.cs | 26 +++++++++---------- .../Scene/Components/BanterGrabHandle.cs | 6 +++-- .../Scene/Components/BanterHeldEvents.cs | 21 ++++++++------- .../Scene/Components/BanterWorldObject.cs | 6 +++-- 32 files changed, 116 insertions(+), 111 deletions(-) diff --git a/Editor/Components/BanterAssetBundleEditor.cs b/Editor/Components/BanterAssetBundleEditor.cs index 27d2ad05..fea296cc 100644 --- a/Editor/Components/BanterAssetBundleEditor.cs +++ b/Editor/Components/BanterAssetBundleEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterAttachedObjectEditor.cs b/Editor/Components/BanterAttachedObjectEditor.cs index c754c08d..ba5c2925 100644 --- a/Editor/Components/BanterAttachedObjectEditor.cs +++ b/Editor/Components/BanterAttachedObjectEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterAudioSourceEditor.cs b/Editor/Components/BanterAudioSourceEditor.cs index 3e6598e0..b7680d04 100644 --- a/Editor/Components/BanterAudioSourceEditor.cs +++ b/Editor/Components/BanterAudioSourceEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterBillboardEditor.cs b/Editor/Components/BanterBillboardEditor.cs index f4905626..81e595b8 100644 --- a/Editor/Components/BanterBillboardEditor.cs +++ b/Editor/Components/BanterBillboardEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterBoxColliderEditor.cs b/Editor/Components/BanterBoxColliderEditor.cs index f6457b28..f15317da 100644 --- a/Editor/Components/BanterBoxColliderEditor.cs +++ b/Editor/Components/BanterBoxColliderEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterBrowserEditor.cs b/Editor/Components/BanterBrowserEditor.cs index dff3e58c..b97dbfb3 100644 --- a/Editor/Components/BanterBrowserEditor.cs +++ b/Editor/Components/BanterBrowserEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterCapsuleColliderEditor.cs b/Editor/Components/BanterCapsuleColliderEditor.cs index e93750ed..376ff3bc 100644 --- a/Editor/Components/BanterCapsuleColliderEditor.cs +++ b/Editor/Components/BanterCapsuleColliderEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterColliderEventsEditor.cs b/Editor/Components/BanterColliderEventsEditor.cs index 079c126b..5c28f326 100644 --- a/Editor/Components/BanterColliderEventsEditor.cs +++ b/Editor/Components/BanterColliderEventsEditor.cs @@ -29,14 +29,14 @@ public override VisualElement CreateInspectorGUI() myInspector.styleSheets.Add(_mainWindowStyleSheet); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterConfigurableJointEditor.cs b/Editor/Components/BanterConfigurableJointEditor.cs index a345968c..e27a3d16 100644 --- a/Editor/Components/BanterConfigurableJointEditor.cs +++ b/Editor/Components/BanterConfigurableJointEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterGLTFEditor.cs b/Editor/Components/BanterGLTFEditor.cs index 98c93d11..b25caa6e 100644 --- a/Editor/Components/BanterGLTFEditor.cs +++ b/Editor/Components/BanterGLTFEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterGeometryEditor.cs b/Editor/Components/BanterGeometryEditor.cs index 19b10f6f..1062be1f 100644 --- a/Editor/Components/BanterGeometryEditor.cs +++ b/Editor/Components/BanterGeometryEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterGrabHandleEditor.cs b/Editor/Components/BanterGrabHandleEditor.cs index 7c28d3d7..2fed3973 100644 --- a/Editor/Components/BanterGrabHandleEditor.cs +++ b/Editor/Components/BanterGrabHandleEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterHeldEventsEditor.cs b/Editor/Components/BanterHeldEventsEditor.cs index 6bb7abd7..5016039b 100644 --- a/Editor/Components/BanterHeldEventsEditor.cs +++ b/Editor/Components/BanterHeldEventsEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterInvertedMeshEditor.cs b/Editor/Components/BanterInvertedMeshEditor.cs index 5ee63960..27fcc2aa 100644 --- a/Editor/Components/BanterInvertedMeshEditor.cs +++ b/Editor/Components/BanterInvertedMeshEditor.cs @@ -29,14 +29,14 @@ public override VisualElement CreateInspectorGUI() myInspector.styleSheets.Add(_mainWindowStyleSheet); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterKitItemEditor.cs b/Editor/Components/BanterKitItemEditor.cs index 069ef632..484cb203 100644 --- a/Editor/Components/BanterKitItemEditor.cs +++ b/Editor/Components/BanterKitItemEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterMaterialEditor.cs b/Editor/Components/BanterMaterialEditor.cs index 3fab6a27..6d489e5c 100644 --- a/Editor/Components/BanterMaterialEditor.cs +++ b/Editor/Components/BanterMaterialEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterMeshColliderEditor.cs b/Editor/Components/BanterMeshColliderEditor.cs index 814f0485..8e59d28d 100644 --- a/Editor/Components/BanterMeshColliderEditor.cs +++ b/Editor/Components/BanterMeshColliderEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterMirrorEditor.cs b/Editor/Components/BanterMirrorEditor.cs index 6c6eda50..e3107a0a 100644 --- a/Editor/Components/BanterMirrorEditor.cs +++ b/Editor/Components/BanterMirrorEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterPhysicMaterialEditor.cs b/Editor/Components/BanterPhysicMaterialEditor.cs index 87779d95..2850249e 100644 --- a/Editor/Components/BanterPhysicMaterialEditor.cs +++ b/Editor/Components/BanterPhysicMaterialEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterPortalEditor.cs b/Editor/Components/BanterPortalEditor.cs index d1b415f9..b94edc4e 100644 --- a/Editor/Components/BanterPortalEditor.cs +++ b/Editor/Components/BanterPortalEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterRigidbodyEditor.cs b/Editor/Components/BanterRigidbodyEditor.cs index 1a3005f7..6f4c6a1f 100644 --- a/Editor/Components/BanterRigidbodyEditor.cs +++ b/Editor/Components/BanterRigidbodyEditor.cs @@ -71,14 +71,14 @@ public override VisualElement CreateInspectorGUI() containerangularVelocity.Add(toggleangularVelocity); myInspector.Add(containerangularVelocity); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterSphereColliderEditor.cs b/Editor/Components/BanterSphereColliderEditor.cs index e859d4c5..672146b6 100644 --- a/Editor/Components/BanterSphereColliderEditor.cs +++ b/Editor/Components/BanterSphereColliderEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterStreetViewEditor.cs b/Editor/Components/BanterStreetViewEditor.cs index 73771adf..9a66541c 100644 --- a/Editor/Components/BanterStreetViewEditor.cs +++ b/Editor/Components/BanterStreetViewEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterSyncedObjectEditor.cs b/Editor/Components/BanterSyncedObjectEditor.cs index 62df9316..30df6dce 100644 --- a/Editor/Components/BanterSyncedObjectEditor.cs +++ b/Editor/Components/BanterSyncedObjectEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterTextEditor.cs b/Editor/Components/BanterTextEditor.cs index 99a2913b..db9525e5 100644 --- a/Editor/Components/BanterTextEditor.cs +++ b/Editor/Components/BanterTextEditor.cs @@ -40,14 +40,14 @@ public override VisualElement CreateInspectorGUI() seeFields.style.color = Color.gray; myInspector.Add(seeFields); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterTransformEditor.cs b/Editor/Components/BanterTransformEditor.cs index 913d57b1..1bd43e4c 100644 --- a/Editor/Components/BanterTransformEditor.cs +++ b/Editor/Components/BanterTransformEditor.cs @@ -183,14 +183,14 @@ public override VisualElement CreateInspectorGUI() containerright.Add(toggleright); myInspector.Add(containerright); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterVideoPlayerEditor.cs b/Editor/Components/BanterVideoPlayerEditor.cs index b4403cd8..09994a25 100644 --- a/Editor/Components/BanterVideoPlayerEditor.cs +++ b/Editor/Components/BanterVideoPlayerEditor.cs @@ -57,14 +57,14 @@ public override VisualElement CreateInspectorGUI() containertime.Add(toggletime); myInspector.Add(containertime); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Editor/Components/BanterWorldObjectEditor.cs b/Editor/Components/BanterWorldObjectEditor.cs index 57e1b1ff..1acaeccc 100644 --- a/Editor/Components/BanterWorldObjectEditor.cs +++ b/Editor/Components/BanterWorldObjectEditor.cs @@ -29,14 +29,14 @@ public override VisualElement CreateInspectorGUI() myInspector.styleSheets.Add(_mainWindowStyleSheet); -//#if BANTER_EDITOR + //#if BANTER_EDITOR var foldout = new Foldout(); foldout.text = "Available Properties"; IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); - foldout.value = false; + foldout.value = false; foldout.Add(inspectorIMGUI); myInspector.Add(foldout); -//#endif + //#endif return myInspector; } diff --git a/Runtime/Scripts/Character/BanterPlayerEvents.cs b/Runtime/Scripts/Character/BanterPlayerEvents.cs index 183ff5d7..dcfab6d1 100644 --- a/Runtime/Scripts/Character/BanterPlayerEvents.cs +++ b/Runtime/Scripts/Character/BanterPlayerEvents.cs @@ -10,24 +10,24 @@ public class BanterPlayerEvents : MonoBehaviour [Foldout("Click", true)] public UnityEvent onClick; - + [Foldout("Grabbing", true)] public UnityEvent onGrab; public UnityEvent onRelease; [Foldout("Trigger", true)] - public UnityEvent onTriggerPress; - public UnityEvent onTrigger; + public UnityEvent onTriggerPress; + public UnityEvent onTrigger; + + [Foldout("Thumbstick", true)] + public UnityEvent onThumbstick; + public UnityEvent onThumbstickClickDown; + public UnityEvent onThumbstickClickUp; - [Foldout("Thumbstick", true)] - public UnityEvent onThumbstick; - public UnityEvent onThumbstickClickDown; - public UnityEvent onThumbstickClickUp; - - [Foldout("Primary/Secondary", true)] - public UnityEvent onPrimaryDown; - public UnityEvent onPrimaryup; - public UnityEvent onSecondaryDown; - public UnityEvent onSecondaryUp; + [Foldout("Primary/Secondary", true)] + public UnityEvent onPrimaryDown; + public UnityEvent onPrimaryup; + public UnityEvent onSecondaryDown; + public UnityEvent onSecondaryUp; } diff --git a/Runtime/Scripts/Scene/Components/BanterGrabHandle.cs b/Runtime/Scripts/Scene/Components/BanterGrabHandle.cs index da8e9e01..9f73baaa 100644 --- a/Runtime/Scripts/Scene/Components/BanterGrabHandle.cs +++ b/Runtime/Scripts/Scene/Components/BanterGrabHandle.cs @@ -2,13 +2,15 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; -public enum BanterGrabType{ +public enum BanterGrabType +{ Point, Cylinder, Ball, Soft } -namespace Banter.SDK { +namespace Banter.SDK +{ [RequireComponent(typeof(BanterObjectId))] [WatchComponent] diff --git a/Runtime/Scripts/Scene/Components/BanterHeldEvents.cs b/Runtime/Scripts/Scene/Components/BanterHeldEvents.cs index 4f9240d4..7620c6d2 100644 --- a/Runtime/Scripts/Scene/Components/BanterHeldEvents.cs +++ b/Runtime/Scripts/Scene/Components/BanterHeldEvents.cs @@ -5,20 +5,21 @@ using UnityEngine; using UnityEngine.Events; -namespace Banter.SDK { - +namespace Banter.SDK +{ + [RequireComponent(typeof(BanterObjectId))] [WatchComponent] public class BanterHeldEvents : BanterComponentBase - { + { [See(initial = "0.5")] public float sensitivity = 0.5f; [See(initial = "0.1")] public float fireRate = 0.1f; - [See(initial = "false")] public bool auto = false; - [See(initial = "false")] public bool blockThumbstick = false; - [See(initial = "false")] public bool blockPrimary = false; - [See(initial = "false")] public bool blockSecondary = false; - [See(initial = "false")] public bool blockThumbstickClick = false; + [See(initial = "false")] public bool auto = false; + [See(initial = "false")] public bool blockThumbstick = false; + [See(initial = "false")] public bool blockPrimary = false; + [See(initial = "false")] public bool blockSecondary = false; + [See(initial = "false")] public bool blockThumbstickClick = false; public override void DestroyStuff() { @@ -28,9 +29,9 @@ public override void DestroyStuff() public override void StartStuff() { - if(!gameObject.GetComponent()) + if (!gameObject.GetComponent()) gameObject.AddComponent(); - + scene.events.OnHeldEvents.Invoke(this); } diff --git a/Runtime/Scripts/Scene/Components/BanterWorldObject.cs b/Runtime/Scripts/Scene/Components/BanterWorldObject.cs index 7d2b1839..432ea1e3 100644 --- a/Runtime/Scripts/Scene/Components/BanterWorldObject.cs +++ b/Runtime/Scripts/Scene/Components/BanterWorldObject.cs @@ -3,14 +3,16 @@ using System.Collections.Generic; using UnityEngine; -namespace Banter.SDK { +namespace Banter.SDK +{ [RequireComponent(typeof(BanterObjectId))] [WatchComponent] public class BanterWorldObject : BanterComponentBase { [Method] - public void _CollectColliders() { + public void _CollectColliders() + { scene.events.OnWorldObjectCollectColliders.Invoke(this); }