コード例 #1
0
 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   = "";
     }
 }
コード例 #2
0
 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        = "";
     }
 }
コード例 #3
0
 public void updateText()
 {
     text.text = chemical + ": " + RomanNum.ToRoman(value);
 }