2022-05-23 13:39:59 +00:00
|
|
|
|
using System.Collections;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
|
|
public class InitLogic : MonoBehaviour
|
|
|
|
|
|
{
|
|
|
|
|
|
private void Start()
|
|
|
|
|
|
{
|
|
|
|
|
|
Application.targetFrameRate = 60;
|
|
|
|
|
|
Input.multiTouchEnabled = false;
|
|
|
|
|
|
|
|
|
|
|
|
PlayerData.Instance.Login();
|
|
|
|
|
|
|
|
|
|
|
|
AudioManager.Instance.SetSoundOn(SettingData.Instance.IsSoundOn);
|
|
|
|
|
|
VibrateManager.Instance.SetVibrateOn(SettingData.Instance.IsVibrateOn);
|
|
|
|
|
|
|
|
|
|
|
|
TKGSDKManager.Instance.InitSDK(GameManager.Instance.LoadGame);
|
2022-06-21 04:29:58 +00:00
|
|
|
|
TKGSDKManager.Instance.SetGameFocusListener(AudioManager.Instance.SetListenerOn);
|
2022-05-23 13:39:59 +00:00
|
|
|
|
|
|
|
|
|
|
if (GameConfig.Instance.IsDebug)
|
|
|
|
|
|
{
|
|
|
|
|
|
SRDebug.Init();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|