Пример #1
0
 void LoadAchievementSteps()
 {
     Debug.Log("LoadAchievementSteps");
     //only support one step now
     if (achievementInfo.achievementStep == null || achievementInfo.achievementStep.Length == 0)
     {
         Debug.LogError("achievement does not have step: " + identifier);
     }
     achievementStep = AchievementManager.Instance.GetAchievementStep(achievementInfo.achievementStep);
     if (achievementStep != null)
     {
         achievementStep.AddAchievementDelegate(ChangeStateForAchievementStep);
     }
     else
     {
         Debug.LogError("achievement step didn't find: " + achievementStep.ToString());
     }
 }
Пример #2
0
 public override string ToString()
 {
     return(identifier + " " + state + " steps: " + achievementStep.ToString());
 }