Is there a way i can reset(change) the code of the method void mouseClicked()
,initially defined in the code, after an if(condition) is verified ?
Example : if i had:
void mouseClicked(){
print("clicked1");
}
void draw(){
if(frameRate>=1000) ---->
//redefine mouseClicked() method so that it will do
exit();
}