插屏回调后出结算,声音处理

This commit is contained in:
yangjing 2022-06-21 12:22:56 +08:00
parent e622f36f90
commit 965da88b8e
2 changed files with 10 additions and 8 deletions

View File

@ -302,8 +302,8 @@ public class GameLogic : MonoBehaviour
mOverTimer.StartTimer(() =>
{
AdsUtils.PlayInterstitial(mIsWin ? Const.AdsValue.GameSuccess : Const.AdsValue.GameFailure, mIsWin);
AdsUtils.PlayInterstitial(mIsWin ? Const.AdsValue.GameSuccess : Const.AdsValue.GameFailure, mIsWin, () =>
{
PanelResult tUIResult = UIManager.Instance.OpenUI<PanelResult>();
tUIResult.InitResult(mIsWin, mEnemyGroupMgr.TotalDamage, TKGSDKManager.Instance.GetConfigBool(TKGParamKey.NativeSwitch.ToString()) && TKGUtils.IsNativeReady());
@ -311,6 +311,7 @@ public class GameLogic : MonoBehaviour
{
PlayerData.Instance.CurrentLevel++;
}
});
}, 1.5f);
}

View File

@ -15,6 +15,7 @@ public class InitLogic : MonoBehaviour
VibrateManager.Instance.SetVibrateOn(SettingData.Instance.IsVibrateOn);
TKGSDKManager.Instance.InitSDK(GameManager.Instance.LoadGame);
TKGSDKManager.Instance.SetGameFocusListener(AudioManager.Instance.SetListenerOn);
if (GameConfig.Instance.IsDebug)
{