Class InteractableComponent

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.InteractableComponent

public class InteractableComponent extends Component
  • Constructor Details

    • InteractableComponent

      public InteractableComponent(Consumer<Entity> runOnInteract, float distance)
  • Method Details

    • interact

      public void interact(Entity target)