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?
![alt text][1]
![alt text][2]
[1]: /storage/temp/74152-screen-shot-2016-07-15-at-44827-pm.png
[2]: /storage/temp/74153-screen-shot-2016-07-15-at-44847-pm.png
↧