biyaniM / ALICE-IN-WONDERLAND-professional-nappers

Single Player, 3D Platformer movement-based game with Color and Level Mechanics with WebGL Builds
6 stars 1 forks source link

Enemy fix #241

Closed siddhantbagga15 closed 1 year ago

siddhantbagga15 commented 1 year ago

The enemy was not being killed and time was not added to the duration left. This is because previously all the enemies had tags (enemy_red, enemy_blue, enemy_yellow) attached. Added "enemy_tag" as the common tag for the enemies and changed it in the code. Some new levels still have enemy_red/enemy_blue/enemy_yellow attached, this is why the shooting is working there.

biyaniM commented 1 year ago

This PR won't be necessary I believe as the root cause was the NullReferenceException on the Explosion Game Object. That has now been put into a try-catch block. I suggest we merge this only if any of the levels have issues.

gautam17pranjal commented 1 year ago

The change is working. Will leave the changes in the pipeline in case we still have issues for the enemies in level 0 and old_level_2. Great work!