Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 0503f46

Browse files
author
Daniel Everland
committed
Fixed a bunch of warnings
1 parent 8dd68e6 commit 0503f46

23 files changed

+43
-43
lines changed

Assets/SO Architecture/Editor/Inspectors/CollectionEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using System.Reflection;
22
using UnityEditor;
3-
using UnityEditorInternal;
43
using UnityEngine;
54
using Type = System.Type;
5+
using ReorderableList = UnityEditorInternal.ReorderableList;
66

77
[CustomEditor(typeof(BaseCollection), true)]
88
public class CollectionEditor : Editor

Assets/SO Architecture/Events/Game Events/GameEventBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public abstract class GameEventBase<T> : GameEventBase, IGameEvent<T>, IStackTra
77
private readonly List<System.Action<T>> _typedActions = new List<System.Action<T>>();
88

99
[SerializeField]
10-
protected T _debugValue;
10+
protected T _debugValue = default(T);
1111

1212
public void Raise(T value)
1313
{

Assets/SO Architecture/Events/Listeners/BaseGameEventListener.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ public abstract class BaseGameEventListener<TType, TEvent, TResponse> : Debuggab
1414
protected override UnityEventBase Response { get { return _response; } }
1515

1616
[SerializeField]
17-
private TEvent _previouslyRegisteredEvent;
17+
private TEvent _previouslyRegisteredEvent = default(TEvent);
1818
[SerializeField]
19-
private TEvent _event;
19+
private TEvent _event = default(TEvent);
2020
[SerializeField]
21-
private TResponse _response;
21+
private TResponse _response = default(TResponse);
2222

2323
[SerializeField]
24-
protected TType _debugValue;
24+
protected TType _debugValue = default(TType);
2525

2626
public void OnEventRaised(TType value)
2727
{
@@ -64,11 +64,11 @@ public abstract class BaseGameEventListener<TEvent, TResponse> : DebuggableGameE
6464
protected override UnityEventBase Response { get { return _response; } }
6565

6666
[SerializeField]
67-
private TEvent _previouslyRegisteredEvent;
67+
private TEvent _previouslyRegisteredEvent = default(TEvent);
6868
[SerializeField]
69-
private TEvent _event;
69+
private TEvent _event = default(TEvent);
7070
[SerializeField]
71-
private TResponse _response;
71+
private TResponse _response = default(TResponse);
7272

7373
public void OnEventRaised()
7474
{

Assets/SO Architecture/Examples/Scripts/CollectionCountDisplayer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
public class CollectionCountDisplayer : MonoBehaviour
77
{
88
[SerializeField]
9-
private Text _textTarget;
9+
private Text _textTarget = default(Text);
1010
[SerializeField]
11-
private BaseCollection _setTarget;
11+
private BaseCollection _setTarget = default(BaseCollection);
1212
[SerializeField]
1313
private string _textFormat = "There are {0} things.";
1414

Assets/SO Architecture/Examples/Scripts/DamageDealer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
public class DamageDealer : MonoBehaviour
66
{
77
[SerializeField]
8-
private FloatReference _damageAmount;
8+
private FloatReference _damageAmount = default(FloatReference);
99

1010
private void OnTriggerEnter(Collider other)
1111
{

Assets/SO Architecture/Examples/Scripts/DamageDealerWithEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
public class DamageDealerWithEvent : DamageDealer
66
{
77
[SerializeField]
8-
private GameEvent _onDamagedEvent;
8+
private GameEvent _onDamagedEvent = default(GameEvent);
99

1010
protected override void DealDamage(UnitHealth target)
1111
{

Assets/SO Architecture/Examples/Scripts/Disabler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
public class Disabler : MonoBehaviour
66
{
77
[SerializeField]
8-
private GameObjectCollection _targetSet;
8+
private GameObjectCollection _targetSet = default(GameObjectCollection);
99

1010
public void DisableRandom()
1111
{

Assets/SO Architecture/Examples/Scripts/ImageFillSetter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
public class ImageFillSetter : MonoBehaviour
77
{
88
[SerializeField]
9-
private FloatReference _variable;
9+
private FloatReference _variable = default(FloatReference);
1010
[SerializeField]
11-
private FloatReference _maxValue;
11+
private FloatReference _maxValue = default(FloatReference);
1212
[SerializeField]
13-
private Image _imageTarget;
13+
private Image _imageTarget = default(Image);
1414

1515
private void Update()
1616
{

Assets/SO Architecture/Examples/Scripts/KeyboardMover.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
public class KeyboardMover : MonoBehaviour
66
{
77
[SerializeField]
8-
private FloatReference _moveSpeed;
8+
private FloatReference _moveSpeed = default(FloatReference);
99

1010
private void Update()
1111
{

Assets/SO Architecture/Examples/Scripts/ObjectAdder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
public class ObjectAdder : MonoBehaviour
66
{
77
[SerializeField]
8-
private GameObjectCollection _targetCollection;
8+
private GameObjectCollection _targetCollection = default(GameObjectCollection);
99

1010
private void OnEnable()
1111
{

0 commit comments

Comments
 (0)