How to fix C2120?

no () after onClick:

button.onClick = [this]{…};

@jacksonsteel You already asked that question here: How to fix this exception?

Please don’t create new threads for the same topic/question. This doesn’t make people answer your questions faster.