garantee dispatching two events from script one after one
Posted: 05 Apr 2014, 18:39
as i know all changes in the script will affect the output at the next frame ,so how can i dispatch two events from script so i can guarantee that the second one dispatched exactly after the first one in very small time ?
assume i have tow events in my script pauseAll_func and playMovie1_func if i write the folowing code :
//-------------
pauseAll_func();
playMovie1_func ();
changed =true;
//--------------
in the previous code what actually may happens is : the two events will dispatch at the sane time, so the result will not be as expected , so how can i deal with such situations?
assume i have tow events in my script pauseAll_func and playMovie1_func if i write the folowing code :
//-------------
pauseAll_func();
playMovie1_func ();
changed =true;
//--------------
in the previous code what actually may happens is : the two events will dispatch at the sane time, so the result will not be as expected , so how can i deal with such situations?