dumper.jslib 1004 字节
Newer Older
J
junkunzhang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
mergeInto(LibraryManager.library, {
  DumpUICallback: function (str) {
    if(typeof GameGlobal!='undefined'){
      GameGlobal.monkeyCallback(_WXPointer_stringify_adaptor(str));
    }
  },
  GetScreenSizeCallback: function(width, height){
    if(typeof GameGlobal!='undefined'){
      GameGlobal.monkeyCallback([width, height]);
    }
  },
  GetUnityVersionCallback: function(version){
    if(typeof GameGlobal!='undefined'){
      GameGlobal.monkeyCallback(_WXPointer_stringify_adaptor(version));
    }

  },
  GetUnityFrameRateCallback: function(rate){
    if(typeof GameGlobal!='undefined'){
      GameGlobal.monkeyCallback(rate)
    }

  },
  GetUnityCacheDetailCallback: function(str) {
    if(typeof GameGlobal!='undefined'){
      GameGlobal.monkeyCallback(_WXPointer_stringify_adaptor(str));
    }

  },
  SetUnityUIType: function(str){
    if(typeof GameGlobal!='undefined'){
      GameGlobal.UnityUIType = _WXPointer_stringify_adaptor(str);
    }

  },
});