Skip to content

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

@JamesYFC

Description

@JamesYFC

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

private StateMachine<States, Events> stateMachine;

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockeddocumentationImprovements or additions to documentationenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions