mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
ResetValue -> Reset
This commit is contained in:
parent
0cc2e21023
commit
ac53d4e7a4
@ -9,7 +9,7 @@
|
||||
- MonoHooks are no more 💀 After some discussions and thoughts it has been decided that the value they bring is not worth it.
|
||||
- Custom property drawers for all atoms.
|
||||
- Variables now discards playmode changes.
|
||||
- Add public method `ResetValue` to Variables.
|
||||
- Add public method `Reset` to Variables.
|
||||
- Improved documentation.
|
||||
- Improved examples.
|
||||
|
||||
|
@ -11,7 +11,7 @@ namespace UnityAtoms.Examples
|
||||
|
||||
public override void Do()
|
||||
{
|
||||
_variable.ResetValue(true);
|
||||
_variable.Reset(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ namespace UnityAtoms
|
||||
public abstract class AtomBaseVariable : BaseAtom, IAtomConstantIcon
|
||||
{
|
||||
public abstract object BaseValue { get; set; }
|
||||
public abstract void ResetValue(bool shouldTriggerEvents = false);
|
||||
public abstract void Reset(bool shouldTriggerEvents = false);
|
||||
}
|
||||
|
||||
[UseIcon("atom-icon-teal")]
|
||||
@ -55,7 +55,7 @@ namespace UnityAtoms
|
||||
public static bool operator ==(AtomBaseVariable<T> left, AtomBaseVariable<T> right) { return Equals(left, right); }
|
||||
public static bool operator !=(AtomBaseVariable<T> left, AtomBaseVariable<T> right) { return !Equals(left, right); }
|
||||
|
||||
public override void ResetValue(bool shouldTriggerEvents = false)
|
||||
public override void Reset(bool shouldTriggerEvents = false)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ namespace UnityAtoms
|
||||
Changed.Raise(Value);
|
||||
}
|
||||
|
||||
public override sealed void ResetValue(bool shouldTriggerEvents = false)
|
||||
public override sealed void Reset(bool shouldTriggerEvents = false)
|
||||
{
|
||||
if (!shouldTriggerEvents)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user