插屏回调后出结算,声音处理
This commit is contained in:
parent
e622f36f90
commit
965da88b8e
|
@ -302,15 +302,16 @@ public class GameLogic : MonoBehaviour
|
|||
|
||||
mOverTimer.StartTimer(() =>
|
||||
{
|
||||
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());
|
||||
|
||||
if (mIsWin)
|
||||
AdsUtils.PlayInterstitial(mIsWin ? Const.AdsValue.GameSuccess : Const.AdsValue.GameFailure, mIsWin, () =>
|
||||
{
|
||||
PlayerData.Instance.CurrentLevel++;
|
||||
}
|
||||
PanelResult tUIResult = UIManager.Instance.OpenUI<PanelResult>();
|
||||
tUIResult.InitResult(mIsWin, mEnemyGroupMgr.TotalDamage, TKGSDKManager.Instance.GetConfigBool(TKGParamKey.NativeSwitch.ToString()) && TKGUtils.IsNativeReady());
|
||||
|
||||
if (mIsWin)
|
||||
{
|
||||
PlayerData.Instance.CurrentLevel++;
|
||||
}
|
||||
});
|
||||
}, 1.5f);
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue