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()); } }
public override string ToString() { return(identifier + " " + state + " steps: " + achievementStep.ToString()); }