Question by
IanGRap · Jul 15, 2016 at 11:54 PM ·
collisioncollider2dtagunresponsive
Unity Freezing During testing
I am pretty new to Unity and am trying to make a bullet hell game. However, Unity keeps freezing and being unresponsive when the Boss is hit by a projectile. I attached the images of the code below. Interestingly, it only freezes some times. Also it only ever freezes when the projectile (the other variable in OnTriggerEnter2D in BossCollision) has the same tag as the boss. Does anyone know what might be the problem?
screen-shot-2016-07-15-at-44827-pm.png
(130.8 kB)
screen-shot-2016-07-15-at-44847-pm.png
(60.1 kB)
Comment
Here is the class PlayerProjectile inherits from (sorry it would only let me post two pictures).
screen-shot-2016-07-15-at-44855-pm.png
(87.9 kB)