SUSMachine icon indicating copy to clipboard operation
SUSMachine copied to clipboard

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

Open JamesYFC opened this issue 4 years ago • 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() {
		// ...
	}
}

JamesYFC avatar Jun 01 '21 00:06 JamesYFC