Commit 07f51503 authored by liujiangnan's avatar liujiangnan

feat: 提示

parent 9f5f5457
...@@ -464,3 +464,12 @@ export function callMiddleLayerFunction(apiName: string, data: any, callback: Fu ...@@ -464,3 +464,12 @@ export function callMiddleLayerFunction(apiName: string, data: any, callback: Fu
} }
} }
export function showTips(tips) {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
middleLayer.getComponent('middleLayer').showTips(tips);
} else {
console.log(tips);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment