Script

Guys I need help, I’ve been working on my game for hours. And I got stuck with this problem.

Ive writing my script, which is

public float velocity = 1;

I’m very sure that I finished it correctly because I already check it for errors and it says none. But when I look it on the inspector, I couldn’t find the velocity which should be in the script.

Tyia.

You sure it compiled? Code itself looks fine, but I’ve had cases where unity is complaining about something completely different preventing a compile so it won’t show anything new.

Thanks for the reply sir, I’m sure it is compiled. Because I also follow it somewhere in YouTube. And I’m pretty sure that I followed it correctly. I didn’t copied and pasted it, I typed it manually.

And there is no complain in console sir, that’s why I’m pretty sure. And I couldn’t find any answer in Google.

Cuz I literally don’t know what’s the problem. And I’m sure it has nothing. But then again, I couldn’t find the velocity.