Skip to content

Decorators to bind Commands to Controller methods #8

Description

@toms-dev
@Declare.CommandProcessor(BoxesCommands.CHANGE_COLOR)
public commandChangeColor(sourceCommand: Command): void {
  this.playerBox.getComponent(ColorChanger).switchColor();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions