private void UpdateInfo() { steps_ = (uint)board.getTank().getSteps(); SearchModeText_.text = "SearchMode: " + sMode_; PasosText_.text = "Pasos: " + steps_; board.getTank().setMode(sMode_); }
// Realiza la busqueda private void search() { if (Input.GetButtonDown("Jump")) { this.setWorking(true); mode_ = tablero_.getTank().getMode(); seeker = tablero_.getTank(); target = tablero_.getCandy(); if (seeker != null && target != null && working) { selectMode(); tablero_.getTank().setSteps(0); } } }