mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
Fix typos (#120)
This commit is contained in:
parent
60a0c28720
commit
5a2816e3ae
@ -88,7 +88,7 @@ namespace UnityAtoms
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Helper to regiser as listener callback
|
||||
/// Helper to register as listener callback
|
||||
/// </summary>
|
||||
public void DebugLog(T item)
|
||||
{
|
||||
|
@ -26,7 +26,7 @@ namespace UnityAtoms
|
||||
public override T Value { get => _value; set => SetValue(value); }
|
||||
|
||||
/// <summary>
|
||||
/// The inital Variable value as a property.
|
||||
/// The initial value as a property.
|
||||
/// </summary>
|
||||
/// <returns>Get the Variable's initial value.</returns>
|
||||
public virtual T InitialValue { get => _initialValue; set => _initialValue = value; }
|
||||
@ -97,7 +97,7 @@ namespace UnityAtoms
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset the Variable to its `_initalValue`.
|
||||
/// Reset the Variable to its `_initialValue`.
|
||||
/// </summary>
|
||||
/// <param name="shouldTriggerEvents">Set to `true` if Events should be triggered on reset, otherwise `false`.</param>
|
||||
public override void Reset(bool shouldTriggerEvents = false)
|
||||
@ -204,7 +204,7 @@ namespace UnityAtoms
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get event by type.
|
||||
/// Get event by type.
|
||||
/// </summary>
|
||||
/// <typeparam name="E"></typeparam>
|
||||
/// <returns>The event.</returns>
|
||||
@ -219,7 +219,7 @@ namespace UnityAtoms
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set event by type.
|
||||
/// Set event by type.
|
||||
/// </summary>
|
||||
/// <param name="e">The new event value.</param>
|
||||
/// <typeparam name="E"></typeparam>
|
||||
|
@ -92,7 +92,7 @@ namespace UnityAtoms.Tags
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
if (!IsInitalized(gameObject))
|
||||
if (!IsInitialized(gameObject))
|
||||
{
|
||||
TaggedGameObjects.Clear();
|
||||
TagInstances.Clear();
|
||||
@ -136,7 +136,7 @@ namespace UnityAtoms.Tags
|
||||
public static void OnInitialization(Action handler)
|
||||
{
|
||||
var atomTags = GameObject.FindObjectOfType<AtomTags>();
|
||||
if (atomTags != null && !IsInitalized(atomTags.gameObject))
|
||||
if (atomTags != null && !IsInitialized(atomTags.gameObject))
|
||||
{
|
||||
_onInitialization += handler;
|
||||
}
|
||||
@ -254,6 +254,6 @@ namespace UnityAtoms.Tags
|
||||
return tags.Tags;
|
||||
}
|
||||
|
||||
private static bool IsInitalized(GameObject go) => TagInstances.ContainsKey(go);
|
||||
private static bool IsInitialized(GameObject go) => TagInstances.ContainsKey(go);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user