Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public void AntiAliasing(GameObject Description){
  2. sliderValue = (int)AASlider.GetComponent<Slider> ().value;
  3. switch(sliderValue){
  4. case 1:
  5. Description.GetComponent<Text> ().text = "None";
  6. break;
  7. case 2:
  8. Description.GetComponent<Text> ().text = "2x";
  9. break;
  10. case 3:
  11. Description.GetComponent<Text> ().text = "4x";
  12. break;
  13. case 4:
  14. Description.GetComponent<Text> ().text = "8x";
  15. break;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement