UQcsse3200 / 2024-studio-3

MIT License
6 stars 0 forks source link

Game crashes when the player goes near the customers #234

Closed benjamin-wang1 closed 6 days ago

benjamin-wang1 commented 6 days ago

Description

When the player goes near the customers (at the top left part of the kitchen), the game crashes.

How To Reproduce

Steps to reproduce the behaviour:

  1. Open the game
  2. Press the 'Start' button
  3. Walk over to the top-left corner of the screen where the spawned customers are
  4. Game crashes

Expected Behaviour

The game should not crash

Temporary Fix

It seems like it was an issue with the TouchAttackComponent. I stopped it from crashing by checking that attacker is not null in a function. I am not sure why customers have this component as there is no combat in this game.