예제 #1
0
파일: log.cs 프로젝트: ricky395/Alieniced
 void Start()
 {
     logObjects   = GetComponentsInChildren <Transform>();
     gPlay        = GameObject.Find("SceneManager(Clone)").GetComponent <GPlayclass>();
     thisBox      = GetComponent <BoxCollider2D>();
     achievements = GameObject.Find("achievements").GetComponent <ShowAchievements>();
 }
예제 #2
0
        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();
            }
        }