void Start() { logObjects = GetComponentsInChildren <Transform>(); gPlay = GameObject.Find("SceneManager(Clone)").GetComponent <GPlayclass>(); thisBox = GetComponent <BoxCollider2D>(); achievements = GameObject.Find("achievements").GetComponent <ShowAchievements>(); }
private void OnShowAchievements(ShowAchievements showAchievementsEvent) { if (Cloud.IsSignedIn) { Cloud.Achievements.ShowOverlay(); } else { Debug.Log("Cant show achievements service not ready!"); #if CLOUDONCE_GOOGLE PlayerPrefs.SetInt(c_guestPreferenceKey, 0); #endif Cloud.Initialize(); } }