Guest User

Untitled

a guest
Jan 22nd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private function DisplayAttributes(){
  2.         for(var i=0; i<CharData.StatNames.Length;i++){ 
  3.             GUI.Label(Rect(Screen.width/2+200,Screen.height/2+(i *LINE_HEIGHT),100,LINE_HEIGHT), CharData.StatNames[i]);
  4.             GUI.Label(Rect(Screen.width/2+305,Screen.height/2+(i *LINE_HEIGHT),50,LINE_HEIGHT), CharData.CurValue[i].ToString());
  5.            
  6.             }
  7.             CharData.ShowExp();
  8.         if(GUI.Button(Rect(Screen.width/2+320,Screen.height/2+LINE_HEIGHT,25, LINE_HEIGHT),">")){
  9.             if(PointsLeft > 0){
  10.                 PointsLeft--;
  11.             }
  12.         }
  13.        
  14.         if(GUI.Button(Rect(Screen.width/2+275,Screen.height/2+LINE_HEIGHT,25, LINE_HEIGHT),"<")){
  15.             PointsLeft++;
  16.         }
  17.                    
  18.     }
Add Comment
Please, Sign In to add comment