chore: bumped dotnet version to 10
This commit is contained in:
@@ -10,20 +10,19 @@ public abstract class StateBehaviourBase : Behaviour, IState
|
||||
public Event<IState, IState.StateTransitionReadyArguments> OnStateTransitionReady { get; } = new();
|
||||
public Event<INameable, INameable.NameChangedArguments> OnNameChanged { get; } = new();
|
||||
|
||||
private string _name = string.Empty;
|
||||
public string Name
|
||||
{
|
||||
get => _name;
|
||||
get;
|
||||
set
|
||||
{
|
||||
if (_name.CompareTo(value) == 0)
|
||||
if (field.CompareTo(value) == 0)
|
||||
return;
|
||||
|
||||
string previousName = _name;
|
||||
_name = value;
|
||||
string previousName = field;
|
||||
field = value;
|
||||
OnNameChanged?.Invoke(this, new(previousName));
|
||||
}
|
||||
}
|
||||
} = string.Empty;
|
||||
|
||||
protected virtual void OnUpdateState() { }
|
||||
public void Update()
|
||||
|
||||
Reference in New Issue
Block a user