Fix typos (#120)

This commit is contained in:
Enderlook 2020-03-30 12:07:10 -03:00 committed by GitHub
parent 60a0c28720
commit 5a2816e3ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View File

@ -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)
{

View File

@ -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>

View File

@ -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);
}
}