Ejemplo n.º 1
0
    /// <summary>
    /// Initializes a new instance of the <see cref="AGSSocialAchievement"/> class.
    /// </summary>
    /// <param name='achievement'>
    /// Achievement.
    /// </param>
    public AGSSocialAchievement(AGSAchievement achievement)
    {
        if (null == achievement)
        {
            AGSClient.LogGameCircleError("AGSSocialAchievement constructor \"achievement\" argument should not be null");
            achievement = AGSAchievement.GetBlankAchievement();
        }
        else
        {
            this.achievement = achievement;
        }
        id = achievement.id;

        percentCompleted = achievement.progress;
    }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AGSSocialAchievement"/> class.
 /// </summary>
 public AGSSocialAchievement()
 {
     achievement = AGSAchievement.GetBlankAchievement();
 }