24 lines
600 B
C#
24 lines
600 B
C#
|
|
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);
|
|||
|
|
|
|||
|
|
if (GameConfig.Instance.IsDebug)
|
|||
|
|
{
|
|||
|
|
SRDebug.Init();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|