Beispiel #1
0
 public void SetTerreno(T_Terreno terreno)
 {
     if (_terreno != T_Terreno.T_PRECIPICIO)
     {
         _terreno = terreno;
     }
     updateTile();
 }
Beispiel #2
0
 public void ini(T_Terreno terreno, int x, int y)
 {
     descubierta = false;
     if (_contenido != T_Contenido.C_NADA)
     {
         Destroy(transform.GetChild(0).gameObject);
     }
     _contenido = T_Contenido.C_NADA;
     posX       = x;
     posY       = y;
     _terreno   = terreno;
     updateTile();
     if (!firstIni)
     {
         GetComponent <Transform>().transform.Translate(x, y, 0);
     }
     firstIni = true;
 }