/// <summary>
 /// Enable the GameObject, set the text and enable/disable the image.
 /// </summary>
 internal void SetText(EvaluationProgressResponse evaluation, bool completed)
 {
     gameObject.SetActive(true);
     _evaluationName.text        = evaluation.Name;
     _evaluationDescription.text = evaluation.Description;
     _evaluationImage.enabled    = completed;
 }
 /// <summary>
 /// Enable the GameObject, set the text and enable/disable the image.
 /// </summary>
 internal void SetText(EvaluationProgressResponse evaluation, bool completed)
 {
     gameObject.SetActive(true);
     _evaluationName.text        = evaluation.Name;
     _evaluationDescription.text = evaluation.Description;
     _evaluationImage.enabled    = completed;
     _evaluationProgress.text    = completed ? string.Empty : (Mathf.Round(evaluation.Progress * 100)) + "%";
 }
Exemple #3
0
 public static EvaluationNotification ToNotification(this EvaluationProgressResponse progressResponse)
 {
     return(new EvaluationNotification
     {
         Actor = progressResponse.Actor,
         Name = progressResponse.Name,
         Description = progressResponse.Description,
         Token = progressResponse.Token,
         Progress = progressResponse.Progress,
         Type = progressResponse.Type
     });
 }