Ejemplo n.º 1
0
 protected void UpdateTextColors(int Stars)
 {
     Star_Objective_Description_1.color = Failed_Objective_Color;
     if (Stars >= 1)
     {
         Star_Objective_Description_1.DOBlendableColor(Achieved_Objective_Color, AnimationDuration).SetDelay(AnimationDuration);
     }
     Star_Objective_Description_2.color = Failed_Objective_Color;
     if (Stars >= 2)
     {
         Star_Objective_Description_2.DOBlendableColor(Achieved_Objective_Color, AnimationDuration).SetDelay(AnimationDuration * 2.0f);
     }
     Star_Objective_Description_3.color = Failed_Objective_Color;
     if (Stars == 3)
     {
         Star_Objective3.DOBlendableColor(Achieved_Objective_Color, AnimationDuration).SetDelay(AnimationDuration * 3.0f);
     }
 }