升级 消耗经验和金币,需要本地和网络同步,又要减少操作
This commit is contained in:
@@ -104,6 +104,7 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
*/
|
||||
private isWxClient(): boolean {
|
||||
// 检查是否存在微信API
|
||||
|
||||
return typeof wx !== 'undefined' && typeof (wx as any).getSystemInfoSync === 'function';
|
||||
}
|
||||
//调试用
|
||||
|
||||
Reference in New Issue
Block a user