public void openKeypad() { puzzle.animator.SetBool("KeypadOpen", true); puzzle.keypad.index = this.index; if (puzzle.successes[this.index]) { puzzle.keypad.correctLight.sprite = puzzle.lightImages[1]; } else { puzzle.keypad.correctLight.sprite = puzzle.lightImages[0]; } puzzle.keypad.enterButton.interactable = !puzzle.successes[this.index]; puzzle.keypad.resetButton.interactable = !puzzle.successes[this.index]; puzzle.keypad.value = puzzle.values[index]; puzzle.keypad.coordinateLabel = puzzle.coordinates[index]; if (CameraScript.Instance.wiresConnected) { puzzle.keypad.outputText.text = RomanNum.ToRoman(puzzle.keypad.value); puzzle.keypad.sideText.text = puzzle.coordinates[index] + "-COORD"; } else { puzzle.keypad.value = 0; puzzle.values[index] = 0; puzzle.keypad.outputText.text = ""; puzzle.keypad.sideText.text = ""; } }
public void UpdateDisplay() { if (CameraScript.Instance.wiresConnected) { puzzle.values[this.index] = value; outputText.text = RomanNum.ToRoman(value); sideText.text = coordinateLabel + "-COORD"; thoughts.sentence = "Three keypads. They seem to be for inputting coordinates of some sort."; } else { thoughts.sentence = "Three keypads. They don't seem to be turned on."; value = 0; puzzle.values[index] = 0; outputText.text = ""; sideText.text = ""; } }
public void updateText() { text.text = chemical + ": " + RomanNum.ToRoman(value); }