#Frozen is never true but dont know why

1 messages · Page 1 of 1 (latest)

coral coral
#

You set frozen to false again the same frame

#

Remove it on line 100 of the first script

#

So it only sets to false AFTER the wait

#

Also put in a few Debug.Logs to check the OnCollision method actually runs (or better yet, a few breakpoints and attach the debugger)

#

Also, in update, you have two if statements checking whether frozen is true, and the first one sets it false at the end, so the second will never run

sand pawn
coral coral