Clickable.onClick - HermesPasser/Ramu GitHub Wiki

virtual Clickable.onClick()

Description

It will be called when the player clicks the object.

You can test this snippet of code here.

class ClickableChild extends Clickable{
   onClick(){
      alert("You clicked me!");
  }
}