I am trying to work on my game with multiple "rays" attacking an enemy called unit with the damage code inside of said unit.
Is there any way I can make it to where if they are touching multiple different rays the damage they take will change?
Depending on the time, there can be many, or few on the world at once
if (isTouching(LazerAmmo.class)) { ((MyWorld) getWorld()).addMoney(1); //removeTouching(LazerAmmo.class); unitHP -=1; }