I get an error when I want to add enemy NPCs to my game.

Assets\enemy.cs(8,12): error CS0246: The type or namespace name ‘transform’ could not be found (are you missing a using directive or an assembly reference?)
I am getting this error please help.

transform is not a type. On the other hand Transform is (mind the upper-case T), and it’s provably what you want to use.

1 Like