The script needs to derive from MonoBehaviour!

Thank you

1 Like