void SetGoalColor(TextMeshProUGUI text, Image image, ILevelGoal levelGoal) { if (levelGoal.IsRequirementMet()) { text.fontSharedMaterial = orangeMaterial; image.sprite = orangeStar; } else { text.fontSharedMaterial = asbestosMaterial; image.sprite = greyStar; } }
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); } }