Fix: Game Crashed nicht mehr wenn das PlayerProjectile einen Gegner berührt
This commit is contained in:
@@ -15,10 +15,10 @@ public class PlayerProjectile extends Actor
|
||||
public void act()
|
||||
{
|
||||
move(7);
|
||||
checkForEnemyCollision();
|
||||
if (!isProjectileOnScreen()){
|
||||
getWorld().removeObject(this);
|
||||
}
|
||||
checkForEnemyCollision();
|
||||
}
|
||||
|
||||
public void checkForEnemyCollision(){
|
||||
|
||||
Reference in New Issue
Block a user