音訊介面

音訊控制和事件。

讓合作夥伴提供平台層級的音訊控制項。

警告:如果使用音訊 API,必須先呼叫 update 才能呼叫 GameSnacks.init

簽名

interface Audio

方法簽章

名稱 說明
update(isEnabled) 設定遊戲音效 。