r/UnityHelp • • Nov 26 '22

2d Unity error

Help! I'm doing a top down shooter in unity and are creating a simple enemy follow, this is also the base of other scripts and I'm getting an error. How do I fix it?

The code:

And the error in unity:

2 Upvotes

2 comments sorted by

2

u/DucNuzl Nov 27 '22

tranform

2

u/corrtex-games Nov 27 '22

Read the error…it’s telling you what’s wrong

Tranform

It’s “Transform”. You misspelled it, and the compiler doesn’t care if it’s close to the correct spelling, it’s just trying to find a “Tranform” class which doesn’t exist.