Пример #1
0
 void SetGoalColor(TextMeshProUGUI text, Image image, ILevelGoal levelGoal)
 {
     if (levelGoal.IsRequirementMet())
     {
         text.fontSharedMaterial = orangeMaterial;
         image.sprite            = orangeStar;
     }
     else
     {
         text.fontSharedMaterial = asbestosMaterial;
         image.sprite            = greyStar;
     }
 }
Пример #2
0
 void SetMainGoalColor(TextMeshProUGUI text, Image image, ILevelGoal levelGoal)
 {
     if (levelGoal.IsRequirementMet())
     {
         text.fontSharedMaterial = orangeMaterial;
         image.sprite            = orangeBoard;
         image.color             = new Color32(255, 255, 255, 205);
     }
     else
     {
         text.fontSharedMaterial = asbestosMaterial;
         image.sprite            = greyBoard;
         image.color             = new Color32(255, 255, 255, 127);
     }
 }