SHARE
TWEET

Untitled

a guest Dec 1st, 2014 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package scripts.paa1.paa1InstructsReq;
  2.  
  3. import scripts.paa0.paa2ScriptReq.OverScript;
  4. import scripts.pab1.Interactable;
  5. import scripts.pzz9Base.Timer;
  6.  
  7. public class InstructHandler {
  8.  
  9.         Timer timer = new Timer(20);
  10.         int cycle = 0;
  11.                
  12.         public void update(Instruct instruct){                         
  13.                 timer.update();        
  14.                 if(timer.isTimeUp(true)){                              
  15.                                 instruct.doTask(OverScript.getUtilities(cycle++));
  16.                                 if(cycle >= 10){
  17.                                         cycle = 0;
  18.                                 }                      
  19.                 }
  20.                 OverScript.ScriptSource.sleep(10);
  21.         }
  22.                
  23.        
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top