引导系统基本完成,开始制作 引导步骤
This commit is contained in:
@@ -31,6 +31,8 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
in_select:false,
|
||||
in_fight:false,
|
||||
};
|
||||
guides:any=[0,0,0,0,0]
|
||||
current_guide:number=0
|
||||
data:any={
|
||||
score:0,
|
||||
mission:1,
|
||||
@@ -94,11 +96,17 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
*/
|
||||
private isWxClient(): boolean {
|
||||
// 检查是否存在微信API
|
||||
|
||||
return typeof wx !== 'undefined' && typeof (wx as any).getSystemInfoSync === 'function';
|
||||
}
|
||||
|
||||
|
||||
finishGuide(index:number){
|
||||
smc.guides[index]=1
|
||||
this.syncGuide()
|
||||
}
|
||||
|
||||
syncGuide(){
|
||||
//存储到远程服务器 后续再添加
|
||||
}
|
||||
//调试用
|
||||
syncDataFromLocal(){
|
||||
if(this.isWxClient()) return
|
||||
|
||||
Reference in New Issue
Block a user