JamesYFC/SUSMachine

clean up code & examples with target typed new (C# 9)

Opened this issue · 0 comments

If I've read the docs right, we can do something like this...

private StateMachine<States, Events> stateMachine;

private void Awake()
{
	stateMachine = new() {
		// ...
	}
}