Skip to content

Commit

Permalink
suppress unwanted warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jheiling committed Oct 22, 2018
1 parent bdf0ea4 commit 6aa8eee
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Examples/Example0/Scripts/ExamplePlayerCharacterInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ namespace Signals.Examples
[AddComponentMenu("Signals/Examples/ExamplePlayerCharacterInput")]
public class ExamplePlayerCharacterInput : TopDownPlayerCharacterInput
{
#pragma warning disable
[SerializeField] StringSignal _lookingAtSignal;
#pragma warning restore

protected override void OnMouseOverUI()
{
Expand Down
2 changes: 2 additions & 0 deletions Extras/Characters/Scripts/PlayerCharacterInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ namespace Signals.Extras.Characters
[AddComponentMenu("Signals/Extras/Characters/PlayerCharacterInput")]
public class PlayerCharacterInput : MonoBehaviour
{
#pragma warning disable
[SerializeField] PlayerCharacterInputSettingsValueReference _settings;
#pragma warning restore
[SerializeField] CharacterMoveSignal _moveSignal;
[SerializeField] BoolSignal _runSignal;
[SerializeField] BoolSignal _jumpSignal;
Expand Down
2 changes: 2 additions & 0 deletions Extras/Characters/Scripts/RigidbodyCharacter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ namespace Signals.Extras.Characters
[RequireComponent(typeof(CapsuleCollider))]
public class RigidbodyCharacter : MonoBehaviour
{
#pragma warning disable
[SerializeField] RigidbodyCharacterSettingsValueReference _settings;
#pragma warning restore
[SerializeField] Transform _cameraPivot;
[SerializeField] CharacterMoveSignal _moveSignal;
[SerializeField] BoolSignal _runSignal;
Expand Down
2 changes: 2 additions & 0 deletions Extras/Engine/Scripts/Setup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ public abstract class Setup<T, ET, ST, VT> : MonoBehaviour, ISettings
where ST : ISignal<T, ET>
where VT : ValueReference<T, ET, ST>
{
#pragma warning disable
[SerializeField] VT _settings;
#pragma warning restore
[SerializeField] bool _applyOnStart = true;

public VT Settings
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Signal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ namespace Signals
[CreateAssetMenu(menuName = "Signals/Signal")]
public class Signal : ScriptableObject, ISignal
{
#if UNITY_EDITOR
#pragma warning disable
#if UNITY_EDITOR
[SerializeField] [Multiline] string _description;
#pragma warning restore
#endif
[SerializeField] UnityEvent _onTriggered;
#pragma warning restore

/// <summary>
/// Invoked when <see cref="Trigger"/> is called.
Expand Down Expand Up @@ -53,8 +53,8 @@ public abstract class Signal<T, ET> : ScriptableObject, ISignal<T, ET>
#if UNITY_EDITOR
#pragma warning disable
[SerializeField] [Multiline] string _description;
#pragma warning restore
[SerializeField] bool _serializeChanges;
#pragma warning restore
#endif
[SerializeField] T _initialValue;
T _value;
Expand Down
2 changes: 2 additions & 0 deletions Scripts/ValueReferenceComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ public abstract class ValueReferenceComponent<T, ET, ST, VT> : MonoBehaviour
where ST : ISignal<T, ET>
where VT : ValueReference<T, ET, ST>
{
#pragma warning disable
[SerializeField] VT _reference;
#pragma warning restore

public VT Reference
{
Expand Down

0 comments on commit 6aa8eee

Please sign in to comment.