Skip to content

Commit 5a34347

Browse files
committed
cleanup
1 parent 7cd6c60 commit 5a34347

18 files changed

+27
-42
lines changed

Examples/Example1/Scripts/ExamplePlayerCharacterInput.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ namespace Signals.Examples
77
[AddComponentMenu(nameof(Signals) + "/" + nameof(Examples) + "/" + nameof(ExamplePlayerCharacterInput))]
88
public class ExamplePlayerCharacterInput : TopDownPlayerCharacterInput
99
{
10-
#pragma warning disable 649
1110
[SerializeField] StringSignal _lookingAtSignal;
12-
#pragma warning restore 649
1311

1412
protected override void OnMouseOverUI() => _lookingAtSignal.Value = "";
1513

14+
#pragma warning disable UNT0006 // Incorrect message signature
1615
protected override void OnMouseOver(ref RaycastHit target)
16+
#pragma warning restore UNT0006 // Incorrect message signature
1717
{
1818
var name = target.transform.GetComponent<Name>();
1919
_lookingAtSignal.Value = name ? name : "";

Examples/Example2.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Examples/Example2/Scene.unity.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Examples/Example3.meta

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Examples/Example3/Scene.unity.meta

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Extras/Characters/Scripts/PlayerCharacterInput.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ namespace Signals.Extras.Characters
66
[AddComponentMenu(nameof(Signals) + "/" + nameof(Extras) + "/" + nameof(Characters) + "/" + nameof(PlayerCharacterInput))]
77
public class PlayerCharacterInput : MonoBehaviour
88
{
9-
#pragma warning disable 649
109
[SerializeField] PlayerCharacterInputSettingsValueReference _settings;
11-
#pragma warning restore 649
1210
[SerializeField] CharacterMoveSignal _moveSignal;
1311
[SerializeField] BoolSignal _runSignal;
1412
[SerializeField] BoolSignal _jumpSignal;

Extras/Characters/Scripts/RigidbodyCharacter.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ namespace Signals.Extras.Characters
88
[RequireComponent(typeof(CapsuleCollider))]
99
public class RigidbodyCharacter : MonoBehaviour
1010
{
11-
#pragma warning disable
1211
[SerializeField] RigidbodyCharacterSettingsValueReference _settings;
13-
#pragma warning restore
1412
[SerializeField] Transform _cameraPivot;
1513
[SerializeField] CharacterMoveSignal _moveSignal;
1614
[SerializeField] BoolSignal _runSignal;

Extras/Characters/Scripts/TopDownPlayerCharacterInput.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ void Update()
3232
}
3333

3434
protected virtual void OnMouseOverUI() { }
35+
36+
#pragma warning disable UNT0006 // Incorrect message signature
3537
protected virtual void OnMouseOver(ref RaycastHit target) { }
38+
#pragma warning restore UNT0006 // Incorrect message signature
3639

3740
protected virtual void OnMouseButtonDown(ref RaycastHit target)
3841
{

Extras/Engine/Scripts/Editor/ApplicationWrapperEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ protected override void OnPlayingInspectorGUI(ApplicationWrapper wrapper)
1111
{
1212
wrapper.TargetFrameRate = EditorGUILayout.IntField("Target Frame Rate", wrapper.TargetFrameRate);
1313
wrapper.RunInBackground = EditorGUILayout.Toggle("Run In Background", wrapper.RunInBackground);
14-
wrapper.BackgroundLoadingPriority = (ThreadPriority)EditorGUILayout.EnumPopup("Background Loading Priority", wrapper.BackgroundLoadingPriority as Enum);
14+
wrapper.BackgroundLoadingPriority = (ThreadPriority)EditorGUILayout.EnumPopup("Background Loading Priority", wrapper.BackgroundLoadingPriority);
1515
}
1616
}
1717
}

Extras/Engine/Scripts/Editor/PhysicsWrapperEditor.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using UnityEditor;
1+
using UnityEngine;
2+
using UnityEditor;
23

34
namespace Signals.Extras.Engine
45
{
@@ -15,7 +16,7 @@ protected override void OnPlayingInspectorGUI(PhysicsWrapper wrapper)
1516
wrapper.DefaultSolverVelocityIterations = EditorGUILayout.IntField("Default Solver Velocity Iterations", wrapper.DefaultSolverVelocityIterations);
1617
wrapper.QueriesHitBackfaces = EditorGUILayout.Toggle("Queries Hit Backfaces", wrapper.QueriesHitBackfaces);
1718
wrapper.QueriesHitTriggers = EditorGUILayout.Toggle("Queries Hit Triggers", wrapper.QueriesHitTriggers);
18-
wrapper.AutoSimulation = EditorGUILayout.Toggle("Auto Simulation", wrapper.AutoSimulation);
19+
wrapper.SimulationMode = (SimulationMode)EditorGUILayout.EnumPopup("Simulation Mode", wrapper.SimulationMode);
1920
wrapper.AutoSyncTransforms = EditorGUILayout.Toggle("Auto Sync Transforms", wrapper.AutoSyncTransforms);
2021
wrapper.InterCollisionDistance = EditorGUILayout.FloatField("Inter Collision Distance", wrapper.InterCollisionDistance);
2122
wrapper.InterCollisionStiffness = EditorGUILayout.FloatField("Inter Collision Stiffness", wrapper.InterCollisionStiffness);

0 commit comments

Comments
 (0)