private void spawnAtacker(float x, float y) { this.ship = new LightFighter(this, x, y); ManagerActor.getInstance().addEntityNext(ship); ship.setTarget(target); ship.followTarget(true); ship.setLightColor(Color.RED); ship.toggleLights(); }
public void setTarget(WorldObject target) { this.target = target; ship.setTarget(target); ship.followTarget(true); ship.setLightColor(Color.RED); ship.toggleLights(); }