void DebugButton(GameObject number) { foreach (var item in AllLevels) { if (item.gameObject == number) { Debug.Log(item.transform.GetSiblingIndex() + 1); if (item.transform.GetSiblingIndex() + 1 >= SceneManager.sceneCountInBuildSettings) { _NoticeManager.OnActivationNoticeBoard(true, 1); } else { if (Game_GlobalInfo.singleton.Player_Lives <= LevelsRequirements[item.transform.GetSiblingIndex()]) { _NoticeManager.OnActivationNoticeBoard(true, 0); return; } //PlayerAbilitiesManager.PAM.OnEnteringGameLevels(); //SceneManager.LoadScene(item.transform.GetSiblingIndex() + 1, LoadSceneMode.Single); StartCoroutine(DelayChangeScene(item.transform.GetSiblingIndex() + 1)); AchievementsManagement.AchievementTracking(item.transform.GetSiblingIndex() + 1, true); } } } }
//public void OnCheckingGooglePlayUser() //{ // if (PlayGamesPlatform.Instance.localUser.authenticated) // { // MenuManager.DisplayInfo.text = "You have already logged on"; // MenuManager.GooglePlaySignIn.gameObject.SetActive(false); // MenuManager.LoginPanelInfo.SetActive(true); // GetUserInfos(); // DebugMaster.OnDebugging("You have already logged on"); // } // else // { // MenuManager.DisplayInfo.text = "You have not log in"; // DebugMaster.OnDebugging("You have not log in"); // } //} public void TestAuthLogin() { DebugMaster.OnDebugging("Processing Google Play Login"); _LoadManager.LoadingScreen(true); Social.localUser.Authenticate((bool success) => { DebugMaster.OnDebugging("Success or Fail = " + success); if (success) { ShowLoginInfo(); _NoticeManage.OnActivationNoticeBoard(true, 9); } else { _LoadManager.LoadingScreen(false); _NoticeManage.OnActivationNoticeBoard(true, 10); } }); }