This commit is contained in:
2025-09-19 11:10:20 +08:00
parent ad0e80ecda
commit a5859af3b4
14 changed files with 3596 additions and 881 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import { WebSDK } from "./webSDK";
import { KSSDK } from "./ksSDK";
import AudioManager from "../Manager/AudioManager";
import GlobalValue, { VideoRoleType } from "../Common/GlobalValue";
import { luffaSDK } from "./luffaSDK";
const { ccclass, property } = _decorator;
@@ -94,7 +95,7 @@ export class SDKManager { //extends Component
this.sdk = new KSSDK() //快手
}else if (sys.platform === sys.Platform.WECHAT_GAME && typeof window["wx"] !== 'undefined') {
this.sdk_channel = E_SDK_Channel.WX
this.sdk = new WXSDK() //微信
this.sdk = new luffaSDK() //微信
} else if (sys.platform === sys.Platform.BYTEDANCE_MINI_GAME && typeof window["tt"] !== 'undefined') {
this.sdk_channel = E_SDK_Channel.BD
this.sdk = new ByteDanceSDK() //抖音(头条)