61 lines
1.4 KiB
JavaScript
61 lines
1.4 KiB
JavaScript
mergeInto(LibraryManager.library,
|
|
{
|
|
GetPlatformType: function(){
|
|
return jsGetPlatformType();
|
|
},
|
|
SetFullscreen: function () {
|
|
unityInstance.SetFullscreen(1);
|
|
},
|
|
LoadView:function(data){
|
|
jsData= UTF8ToString(data);
|
|
jsLoadView(jsData);
|
|
},
|
|
HideView:function(){
|
|
jsHideView();
|
|
},
|
|
Alert:function(msg){
|
|
alert(UTF8ToString(msg));
|
|
},
|
|
IsBroswerSP:function(){
|
|
return jsIsBroswerSP();
|
|
},
|
|
IsMobileBroswer:function(){
|
|
return jsIsMobileBroswerSP();
|
|
},
|
|
IsShowFPS:function(){
|
|
return jsIsShowFPS();
|
|
},
|
|
OpenUrl:function(data){
|
|
jsData= UTF8ToString(data);
|
|
window.open(jsData, "_blank");
|
|
},
|
|
PlayBg:function(index){
|
|
return jsPlayBg(index);
|
|
},
|
|
PauseBackgroundMusic:function(){
|
|
return jsPauseBackgroundMusic();
|
|
},
|
|
ResumeBackgroundMusic:function(){
|
|
return jsResumeBackgroundMusic();
|
|
},
|
|
SetBackgroundMute:function(){
|
|
return jsSetBackgroundMute();
|
|
},
|
|
PlayAudio:function(audioName){
|
|
return jsPlayAudio(UTF8ToString(audioName));
|
|
},
|
|
StopAudio:function(){
|
|
return jsStopAudio();
|
|
},
|
|
LoadVideo:function(data1,data2){
|
|
jsData1= UTF8ToString(data1);
|
|
jsData2= UTF8ToString(data2);
|
|
jsLoadVideo(jsData1,jsData2);
|
|
},
|
|
IsIOSBroswer:function(){
|
|
return jsIsIOSBroswer();
|
|
}
|
|
});
|
|
|
|
|