Guest User

Untitled

a guest
Jan 22nd, 2019
98
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.            
  4.                 GUI.Label(Rect(Screen.width/2+200,Screen.height/2+(i *LINE_HEIGHT),100,LINE_HEIGHT), CharData.StatNames[i]);
  5.                 GUI.Label(Rect(Screen.width/2+305,Screen.height/2+(i *LINE_HEIGHT),50,LINE_HEIGHT), CharData.CurValue[i].ToString());
  6.            
  7.             }
  8.             CharData.ShowExp();
  9.             if(GUI.Button(Rect(Screen.width/2+320,Screen.height/2+LINE_HEIGHT,25, LINE_HEIGHT),">")){
  10.                 if(PointsLeft > 0){
  11.                     PointsLeft--;
  12.                 }
  13.             }
  14.        
  15.             if(GUI.Button(Rect(Screen.width/2+275,Screen.height/2+LINE_HEIGHT,25, LINE_HEIGHT),"<")){
  16.                     PointsLeft++;
  17.             }
  18.            
  19.  
  20.  
  21.            
  22.            
  23.     }
Add Comment
Please, Sign In to add comment