public void AntiAliasing(GameObject Description){ sliderValue = (int)AASlider.GetComponent ().value; switch(sliderValue){ case 1: Description.GetComponent ().text = "None"; break; case 2: Description.GetComponent ().text = "2x"; break; case 3: Description.GetComponent ().text = "4x"; break; case 4: Description.GetComponent ().text = "8x"; break; } }