Ejemplo n.º 1
0
  @Override
  public void draw(Batch batch, float x, float y) {
    time += Gdx.graphics.getDeltaTime();
    if (time > duration) {
      time = 0f;
      visible = !visible;
    }

    super.draw(batch, x, y);
  }
 public void draw(@NonNull Canvas canvas) {
   for (Text text : texts.values()) {
     text.draw(canvas);
   }
 }