Spring774
2025-11-12 2379cc78112ecbe65a9fcb817d6441875f785803
assets/Script/Logo.ts
@@ -123,14 +123,20 @@
    startGame() {
        if (Sdk.isHuawei) {
            Sdk.ins.startGame((result) => {
                if (result) {//自动登录成功
                    cc.director.loadScene(this.nextSceneName);
                } else {//显示开始游戏按钮
                    this.buttonStartGame.node.active = true;
                    this.ppNode.active = false;
                }
            });
            if (Sdk.ins.isLogin) {
                //显示开始游戏按钮
                this.buttonStartGame.node.active = true;
                this.ppNode.active = false;
                Sdk.ins.isLogin = false;
            } else
                Sdk.ins.startGame((result) => {
                    if (result) {//自动登录成功
                        cc.director.loadScene(this.nextSceneName);
                    } else {//显示开始游戏按钮
                        this.buttonStartGame.node.active = true;
                        this.ppNode.active = false;
                    }
                });
        } else {
            cc.director.loadScene(this.nextSceneName);
        }