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