public void actualizar() { if (GetComponent <Dado>().caminando == true) { RestablecerValores.ponerPosx(posx); //posx RestablecerValores.ponerPosy(posy); //posy RestablecerValores.ponerPH(per.GetComponent <Personaje>().ph); //ph RestablecerValores.ponerCasilla(per.GetComponent <Personaje>().casillaActual); //casillaActual } }