Exemple #1
0
 //----------------------------------------------
 public void ShowAchievement(Profile.Enum2 inAchievement)
 {
     if (achievementPanel.state == LagAround.State.Hidden)
     {
         this.ShowPanel(inAchievement);
     }
     else
     {
         achievements.Add(inAchievement);
     }
 }
Exemple #2
0
        //----------------------------------------------
        public AchievementDetails GetAchievementDetails(Profile.Enum2 inAchievement)
        {
            for (int i = 0; i < achievementDetailsList.Length; i++)
            {
                if (achievementDetailsList[i].achievementType == inAchievement)
                {
                    return(achievementDetailsList[i]);
                }
            }

            Ross_Utils.Assert(false);

            return(achievementDetailsList[0]);
        }
Exemple #3
0
        //-------------------------------------------
        public void SetAchievementDetails(Profile.Enum2 inAchievement)
        {
            AchievementDetails achDetails = this.GetAchievementDetails(inAchievement);

//		achievementName.text = achDetails.achievementName;
            achievementDescription.text = achDetails.achievementDescription;

//		if ((inAchievement == GameCenterWrapper.AchievementType.GetFreeSonicScares) ||
//			(inAchievement == GameCenterWrapper.AchievementType.Collect100FrogSpawn_GetFreeToken)||
//			(inAchievement == GameCenterWrapper.AchievementType.GetFreeHyperHops))
//		{
//			achievementName.text = "FREE * FREE * FREE";
//		}
//		else
            achievementName.text = "ACHIEVEMENT";

//			achievementName.gameObject.SetActive(!achDetails.dontShowHeading);
        }
 public static void ReportAchievement_BannerOnly(Profile.Enum2 inType)
 {
     Globals.g_achievementQueue.ShowAchievement(inType);
 }
Exemple #5
0
 //----------------------------------------------
 void ShowPanel(Profile.Enum2 inAchievement)
 {
     showTimer = 4.0f;
     achievementPanel.Show();
     achievementPanel.gameObject.GetComponent <AchievementPanel>().SetAchievementDetails(inAchievement);
 }