problem at adding script

When I Try To Attach a script it says: Can't Add Script Can't Add Script behaviour tempGen_V0.2. The Scripts file name does not match the name of the class defined in the script! What is The Problem?

What is The Problem?

The Scripts file name does not match the name of the class defined in the script.

Seems you answered your own question.

In an attempt to clarify this;

Your class must have the same name as the file (without the extension).

Also I think you should strip off the dot in your class name (tempGen_V0.2).