Quantcast
Channel: Answers for "Unity freezes when OnTriggerEnter occurs"
Viewing all articles
Browse latest Browse all 6

Answer by alok-kr-029

$
0
0
I think so every time the trigger is entered the hitCoolDown = true and meanwhile in update every frame it gets updated and try running your if(hitCoolDown){ hitTimer += Time.deltaTime; if(hitTimer >= hitCoolDownTime){ hitCoolDown = false; hitTimer = 0f; } part of script which make an infinite loop and hangs your gameplay

Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>