mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-21 23:58:49 -05:00
Remove all FormerlySerializedAs attributes
This commit is contained in:
parent
53a5d0a6c8
commit
cd90f0e667
@ -28,6 +28,7 @@ _The release notes were introduced halfway through the work with version `2.0.0`
|
||||
## 🏠 Internal
|
||||
|
||||
- Added internal tool to regenerate all existing Atoms. Nifty when doing changes that requires you to update all types of Atoms.
|
||||
- Removed all `FormerlySerializedAs` attributes.
|
||||
|
||||
## 💅 Polish
|
||||
|
||||
|
@ -7,7 +7,6 @@ namespace UnityAtoms.Examples
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Examples/Intro/Decrease Players Health")]
|
||||
public sealed class DecreasePlayersHealth : Collider2DAction
|
||||
{
|
||||
[FormerlySerializedAs("TagPlayer")]
|
||||
[SerializeField]
|
||||
private StringConstant _tagPlayer = null;
|
||||
|
||||
|
@ -22,14 +22,12 @@ namespace UnityAtoms
|
||||
/// <summary>
|
||||
/// The Variable to set.
|
||||
/// </summary>
|
||||
[FormerlySerializedAs("Variable")]
|
||||
[SerializeField]
|
||||
private V _variable = null;
|
||||
|
||||
/// <summary>
|
||||
/// The value to set.
|
||||
/// </summary>
|
||||
[FormerlySerializedAs("Value")]
|
||||
[SerializeField]
|
||||
private R _value = null;
|
||||
|
||||
|
@ -20,7 +20,6 @@ namespace UnityAtoms
|
||||
/// <summary>
|
||||
/// The Event that we are listening to.
|
||||
/// </summary>
|
||||
[FormerlySerializedAs("Event")]
|
||||
[SerializeField]
|
||||
private E _event = null;
|
||||
|
||||
@ -34,7 +33,6 @@ namespace UnityAtoms
|
||||
/// The Unity Event responses.
|
||||
/// NOTE: This variable is public due to this bug: https://issuetracker.unity3d.com/issues/events-generated-by-the-player-input-component-do-not-have-callbackcontext-set-as-their-parameter-type. Will be changed back to private when fixed (this could happen in a none major update).
|
||||
/// </summary>
|
||||
[FormerlySerializedAs("UnityEventResponse")]
|
||||
public UER _unityEventResponse = null;
|
||||
|
||||
/// <summary>
|
||||
@ -42,7 +40,6 @@ namespace UnityAtoms
|
||||
/// </summary>
|
||||
/// <typeparam name="A">The Action type.</typeparam>
|
||||
/// <returns>A `List<A>` of Actions.</returns>
|
||||
[FormerlySerializedAs("GameActionResponses")]
|
||||
[SerializeField]
|
||||
private List<A> _actionResponses = new List<A>();
|
||||
|
||||
@ -89,7 +86,6 @@ namespace UnityAtoms
|
||||
/// <summary>
|
||||
/// The Event that we are listening to.
|
||||
/// </summary>
|
||||
[FormerlySerializedAs("Event")]
|
||||
[SerializeField]
|
||||
private E _event;
|
||||
|
||||
@ -103,7 +99,6 @@ namespace UnityAtoms
|
||||
/// The Unity Event responses.
|
||||
/// NOTE: This variable is public due to this bug: https://issuetracker.unity3d.com/issues/events-generated-by-the-player-input-component-do-not-have-callbackcontext-set-as-their-parameter-type. Will be changed back to private when fixed (this could happen in a none major update).
|
||||
/// </summary>
|
||||
[FormerlySerializedAs("UnityEventResponse")]
|
||||
public UER _unityEventResponse = null;
|
||||
|
||||
/// <summary>
|
||||
@ -111,7 +106,6 @@ namespace UnityAtoms
|
||||
/// </summary>
|
||||
/// <typeparam name="A">The Action type.</typeparam>
|
||||
/// <returns>A `List<A>` of Actions.</returns>
|
||||
[FormerlySerializedAs("GameActionResponses")]
|
||||
[SerializeField]
|
||||
private List<A> _actionResponses = new List<A>();
|
||||
|
||||
|
@ -52,7 +52,6 @@ namespace UnityAtoms
|
||||
/// <returns>Get or set the Variable value.</returns>
|
||||
public virtual T Value { get { return _value; } set { throw new NotImplementedException(); } }
|
||||
|
||||
[FormerlySerializedAs("value")]
|
||||
[SerializeField]
|
||||
protected T _value;
|
||||
|
||||
|
@ -35,7 +35,6 @@ namespace UnityAtoms
|
||||
/// <value></value>
|
||||
public T OldValue { get { return _oldValue; } }
|
||||
|
||||
[FormerlySerializedAs("oldValue")]
|
||||
[SerializeField]
|
||||
private T _oldValue;
|
||||
|
||||
|
@ -23,13 +23,11 @@ namespace UnityAtoms.MonoHooks
|
||||
/// <summary>
|
||||
/// Event including a GameObject reference.
|
||||
/// </summary>
|
||||
[FormerlySerializedAs("EventWithGORef")]
|
||||
public E2 EventWithGameObjectReference;
|
||||
|
||||
/// <summary>
|
||||
/// Selector function for the Event `EventWithGameObjectReference`. Makes it possible to for example select the parent GameObject and pass that a long to the `EventWithGameObjectReference`.
|
||||
/// </summary>
|
||||
[FormerlySerializedAs("SelectGORef")]
|
||||
[SerializeField]
|
||||
protected F _selectGameObjectReference;
|
||||
|
||||
|
@ -13,14 +13,12 @@ namespace UnityAtoms.MonoHooks
|
||||
/// <summary>
|
||||
/// Listener
|
||||
/// </summary>
|
||||
[FormerlySerializedAs("listener")]
|
||||
[SerializeField]
|
||||
private VoidListener _listener;
|
||||
|
||||
/// <summary>
|
||||
/// Listener with GameObject reference
|
||||
/// </summary>
|
||||
[FormerlySerializedAs("listenerWithGO")]
|
||||
[SerializeField]
|
||||
private VoidGameObjectListener _listenerWithGameObject;
|
||||
|
||||
|
@ -14,7 +14,6 @@ namespace UnityAtoms.SceneMgmt
|
||||
/// <summary>
|
||||
/// Scene to change to.
|
||||
/// </summary>
|
||||
[FormerlySerializedAs("SceneName")]
|
||||
[SerializeField]
|
||||
private StringReference _sceneName = null;
|
||||
|
||||
|
@ -16,14 +16,12 @@ namespace UnityAtoms.UI
|
||||
/// <summary>
|
||||
/// Variable that we listens to.
|
||||
/// </summary>
|
||||
[FormerlySerializedAs("UIStateVariable")]
|
||||
[SerializeField]
|
||||
private StringVariable _UIStateVariable = null;
|
||||
|
||||
/// <summary>
|
||||
/// A list of states that this `UIContainer` will be visible for.
|
||||
/// </summary>
|
||||
[FormerlySerializedAs("VisibleForStates")]
|
||||
[SerializeField]
|
||||
private List<StringConstant> _visibleForStates = null;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user