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.

@joms102214

You don’t even have a class?

Or did you just post a line of your code?

There is nothing wrong in that line itself… it must be something else.

I have class sir, actually I put that line below the class and before the void start

Hello

Csn you show us the whole class?

Christoph

@joms102214

“…I put that line below the class and before the void start”

You are not helping yourself by not adding the code here. You can do it by using code tags:

It must be something else, and if you don’t show the code, it is hard to help.

1 Like