- Home /
 
               Question by 
               Nachulu · Aug 05, 2014 at 02:42 AM · 
                gameobject3dfunctionpong  
              
 
              overlap numbers
Hi, I have a problem, I just overlap the number. Are on top of each other. As in the picture
This is the link of the photo: http://www.subeimagenes.com/img/sin-titulo-1046356.png
This is the script:
 var PuntosJugador1:int = 0;
 
 
 function OnCollisionEnter (col : Collision) {
 
 if (col.gameObject.name == "Pelota")
     
 PuntosJugador1 += 1;
 
 Debug.Log("El puntaje del jugador 1 es " +  PuntosJugador1);
 
 
 }
 
 function OnGUI () {
 
 
 GUI.Label(Rect(0,0,100,100),"" + PuntosJugador1);
 
 
 }
Thanks !
 
                 
                sin título.png 
                (146.0 kB) 
               
 
              
               Comment
              
 
               
              It looks like you have multiple game objects with this script in your project, all writing to (0,0,100,100).
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                