diff --git a/Examples/Example0/Scripts/ExamplePlayerCharacterInput.cs b/Examples/Example0/Scripts/ExamplePlayerCharacterInput.cs index 032e813..ca63c6b 100644 --- a/Examples/Example0/Scripts/ExamplePlayerCharacterInput.cs +++ b/Examples/Example0/Scripts/ExamplePlayerCharacterInput.cs @@ -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() { diff --git a/Extras/Characters/Scripts/PlayerCharacterInput.cs b/Extras/Characters/Scripts/PlayerCharacterInput.cs index 6d5be0b..7b6160c 100644 --- a/Extras/Characters/Scripts/PlayerCharacterInput.cs +++ b/Extras/Characters/Scripts/PlayerCharacterInput.cs @@ -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; diff --git a/Extras/Characters/Scripts/RigidbodyCharacter.cs b/Extras/Characters/Scripts/RigidbodyCharacter.cs index afc4417..eb74c1c 100644 --- a/Extras/Characters/Scripts/RigidbodyCharacter.cs +++ b/Extras/Characters/Scripts/RigidbodyCharacter.cs @@ -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; diff --git a/Extras/Engine/Scripts/Setup.cs b/Extras/Engine/Scripts/Setup.cs index 9ce0bc1..2a556e3 100644 --- a/Extras/Engine/Scripts/Setup.cs +++ b/Extras/Engine/Scripts/Setup.cs @@ -11,7 +11,9 @@ public abstract class Setup : MonoBehaviour, ISettings where ST : ISignal where VT : ValueReference { +#pragma warning disable [SerializeField] VT _settings; +#pragma warning restore [SerializeField] bool _applyOnStart = true; public VT Settings diff --git a/Scripts/Signal.cs b/Scripts/Signal.cs index 27cf369..243e127 100644 --- a/Scripts/Signal.cs +++ b/Scripts/Signal.cs @@ -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 /// /// Invoked when is called. @@ -53,8 +53,8 @@ public abstract class Signal : ScriptableObject, ISignal #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; diff --git a/Scripts/ValueReferenceComponent.cs b/Scripts/ValueReferenceComponent.cs index 1868c42..9048d91 100644 --- a/Scripts/ValueReferenceComponent.cs +++ b/Scripts/ValueReferenceComponent.cs @@ -10,7 +10,9 @@ public abstract class ValueReferenceComponent : MonoBehaviour where ST : ISignal where VT : ValueReference { +#pragma warning disable [SerializeField] VT _reference; +#pragma warning restore public VT Reference {