Skip to content

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

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() {
		// ...
	}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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