You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to get layer of the target that a projectile is coming into contact with so projectile effects can be properly implemented. It's only returning one type of layer, the engineer layer, even when engineers aren't being spawned. Code can be found in the onCollision methods under:
source/core/src/main/com/csse3200/game/components/EffectsComponent.java
and
source/core/src/main/com/csse3200/game/components/TouchAttackComponent.java
Description
Trying to get layer of the target that a projectile is coming into contact with so projectile effects can be properly implemented. It's only returning one type of layer, the engineer layer, even when engineers aren't being spawned. Code can be found in the onCollision methods under:
source/core/src/main/com/csse3200/game/components/EffectsComponent.java
and
source/core/src/main/com/csse3200/game/components/TouchAttackComponent.java
If you call the print statement below, it will print "target layer: 2" regardless of what entity should be the target.
Expected Behaviour
It should be returning the layer that's allocated to a specific entity.
Screenshots
The text was updated successfully, but these errors were encountered: