Question by
1theGECKO · Jan 14, 2016 at 02:38 PM ·
eventsonclickdelegateorder-of-execution
Execution order of custom events
I have a custom event that started with onClick. I have 2 scripts with 1 subscribed method each. How do I know which one is going to execute first? Should I create 2 events, or is there a way to pick the order?
Comment
Answer by toddisarockstar · Jan 14, 2016 at 09:50 PM
why not skip a frame?
var framecount:int;
function Update(){
if(thishappenedtome){framecount=5;}
if(framecount>0){framecount=framecount-1;
if(framecount==4){first thing is first}
if(framecount==3){second thing is second}
}
}