// removes the reference to the keypad to avoid unexpected behaviour public void ExitKeypad() { _currentKeypad = null; }
// called when the player first interacts with the keypad in order to pass reference public void EnterKeypad(KeypadObject keypad) { _currentKeypad = keypad; }