#bird
1 messages · Page 1 of 1 (latest)
I want to see if Update is even running at all
Add this to the very start of the method:
Debug.Log("Update.");
When you're having problems with something not happening, you need to figure out what is happening
to top ?
Before the if statement, yes
right after the opening curly brace of the Update method.
This should log to the console every frame.
That is correct.
i suspect you didn't save your script file
Unity defaults to reloading automatically when you change a file
so it should recompile once you save the script
btw i noticed a thing
for first few sec it doesnt jump after like 2 sec it accepts command
and jumps
wait
it accepts jumping command after i do a left click on screen
and there on it jumps
yeah, the game needs to be focused to receive input
i believe you have it on "Play Unfocused"
that means it won't switch to the game view and it won't focus on the game
its on unfocused
This only matters in the editor
should i change it to focus
I use Unfocused when I want to watch something in the scene view without having to click back to it
but otherwise I leave it on Focused
if you don't want to have to click on the game view, yes
thx