예제 #1
0
 private void Update()
 {
     if (TableroScript.tablero != null)
     {
         if (!TableroScript.tablero.isFinalizado())
         {
             time += Time.deltaTime;
             if (time >= 1.0f)
             {
                 time = 0;
                 cronometro.SumarSegundo();
                 gameObject.GetComponent <TextMesh>().text = cronometro.Cadena();
             }
         }
     }
 }