tremble 7bb9ef82fe update0512 2 éve
..
Build 7bb9ef82fe update0512 2 éve
TemplateData 3be6cd6406 update0512 2 éve
README.txt 7bb9ef82fe update0512 2 éve
ServiceWorker.js 7bb9ef82fe update0512 2 éve
index copy.html 7bb9ef82fe update0512 2 éve
index.html 7bb9ef82fe update0512 2 éve
manifest.webmanifest 3be6cd6406 update0512 2 éve

README.txt


//js -> unity

unityInstance.SendMessage('Main', 'OnClickEdit', 0); //点击编辑 -刚进入场景时默认为浏览模式,调用此函数后进入编辑模式

unityInstance.SendMessage('Main', 'OnClickModule', 0); //单击模块按钮 0主楼 1一进院 2二进院 3后院 4左侧田地 -1整体预览
unityInstance.SendMessage('Main', 'OnClickType', 0); //点击类型按钮 0构建 1颜色
unityInstance.SendMessage('Main', 'OnClickItem', 0); //点击类型中的元素


unityInstance.SendMessage('Main', 'Save', 0); //保存拼接状态 -注意:调用完此函数后,ui需要恢复成我的庭院
unityInstance.SendMessage('Main', 'Cancel', 0); //恢复拼接状态 -注意:调用完此函数后,ui需要恢复成我的庭院




unityInstance.SendMessage('Main', 'CallShareImage', 0); //分享




//unity -> js (此为需要定义的函数)

function onShareImage(str) //点击分享,截图成功回调。string类型参数

function enableUIInteract() //启用ui交互 - 默认为允许交互
function disableUIInteract() //禁用ui交互
function showTouchErrorTips() //显示触摸位置错误tips