Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package scripts.paa1.paa1InstructsReq;
- import scripts.paa0.paa2ScriptReq.OverScript;
- import scripts.pab1.Interactable;
- import scripts.pzz9Base.Timer;
- public class InstructHandler {
- Timer timer = new Timer(20);
- int cycle = 0;
- public void update(Instruct instruct){
- timer.update();
- if(timer.isTimeUp(true)){
- instruct.doTask(OverScript.getUtilities(cycle++));
- if(cycle >= 10){
- cycle = 0;
- }
- }
- OverScript.ScriptSource.sleep(10);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement