void Awake() { if (instance == null) { instance = this; } else if (instance != this) { UnityEngine.Debug.LogError("SingleTone Error : " + this.name); Destroy(this); } //FadeTool.FadeIn(1f, ()=> { isBtnEnable = true; }); #region 안드로이드 설정 Input.multiTouchEnabled = false; Application.targetFrameRate = 60; #endregion canvas = GameObject.Find("Canvas").transform; tutorial = canvas.Find("Tutorial").gameObject.GetComponent <Tutorial>(); _new = canvas.Find("NewIcon").gameObject; option = canvas.Find("Option").gameObject.GetComponent <Option>(); exitPanel = canvas.Find("ExitPanel").gameObject.GetComponent <Exit>(); diary = canvas.Find("Diary").gameObject.GetComponent <Diary>(); intro = canvas.Find("Intro").gameObject.GetComponent <Intro>(); loadPanel = canvas.Find("LoadPanel").gameObject; startPanel = canvas.Find("StartPanel").gameObject; if (!SaveManager.isintroSeen) { SaveManager.isintroSeen = true; Database.ReadDatas(); ArchLoader.instance.StartCache(); SaveManager.LoadAll(false); LoadPanelOn(); GooglePlayManager.Init(); GooglePlayManager.LogIn(LoadPanelOff, LoadPanelOff); intro.On(() => { isBtnEnable = true; }); } #if !UNITY_ANDROID LoadPanelOff(); #endif }
public void OnLogIn() { GooglePlayManager.LogIn(null, null); }