void State() { if (slider.value >= .70f && slider.value <= .75f) { success = true; Ready.SetActive(true); } else if (slider.value > .75f) { Burnt.SetActive(true); Ready.SetActive(false); success = false; } else if (slider.value > .35f) { KindOf.SetActive(true); UnCooked.SetActive(false); success = false; } else { success = false; } }
public void HomeKindOf(object homeKindOf) { string b = Convert.ToString(homeKindOf); _KindOf = (KindOf)Enum.Parse(typeof(KindOf), b, true); }