I have this problem. I wrote a script with a method when interacting with which the player exits the game, but when I wanted to bind it to the button, and I realised that it didn’t work . In the OnClick() component, I attached my script, but for some reason the method is not attached.How can I attach my method?

[unityscript]is or better was a custom JavaScript flavor-like language used in early Unity versions and is long deprecated by now. Also[unity-container]is completely unrelated!