The script needs to derive from MonoBehaviour!

Thank you