Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. let asd: ScriptDescription = {};
  2.  
  3. namespace ASD {
  4. export let GameStart: boolean = false;
  5. export namespace Load {
  6. export function Init(): void {
  7. if (GameRules.IsActiveGame()) GameStart = true;
  8. }
  9. }
  10. }
  11.  
  12. asd.OnUpdate = () => {};
  13.  
  14. asd.OnGameEnd = () => {
  15. ASD.GameStart = false;
  16. };
  17.  
  18. asd.OnScriptLoad = asd.OnGameStart = ASD.Load.Init;
  19.  
  20. RegisterScript(asd);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement