- Home /
Question by
thegodlygod · Jun 24, 2015 at 10:46 AM ·
collisionexecutesecond
Only execute command on second collision
Is there way to execute a command only on the second time that the gameobject collides?
Comment
Best Answer
Answer by Graham-Dunnett · Jun 24, 2015 at 10:47 AM
Have a variable that starts at zero. Increase it by one when the game object collides. When this variable reaches 2, then execute your command.
Your answer
Follow this Question
Related Questions
Collisions, tags, and enemy types 1 Answer
Particle Collision / Trigger not being reported to On_xx Event 1 Answer
Unet collision and layer mask issues 0 Answers
Rigid body not colliding with box collider. 1 Answer
Does it cost in performance if I have mesh colliders without a mesh attached? 1 Answer