As in title - when I start game, it skips all of SprawdzaPrawo and SprawdzaLewo. Why? And how fix it?
Hey there,
i’m assuming here that “SprawdzaPrawo” and “SprawdzaLewo” are supposed to be the functions that shall automatically execute as soon as you collide with something.
But these callbackfunctions that unity automatically triggers have to be exactly named. Thus the start function hast to be a void Start()
and so on.
What you are searching for is to combine your 2 functions into one and name it OnCollisionEnter
Then it will be called when your object collides with something.