.
You should use braces, regardless.
if (Forward)
{
if (Input.GetButtonDown("Fire1"))
{
MoveDirection = Direction.Forward2;
}
if (Left)
{
MoveDirection = Direction.LeftForward2;
}
else if (Right)
{
MoveDirection = Direction.RightForward2;
}
else
{
MoveDirection = Direction.Forward2;
}
MoveDirection = Forward;
}
I would be surprised if this code did what you want it to do.
Yeh It doesnt lol; i’ve created another thread - I’m really struggling here ![]()
use a switch statement.
See my update; it connects to a switch depending on its state;
BUMP
do not bump threads that are not old.
paste the whole script please
.
1 Like
I suggest finishing the tutorial before you try to change things.