Guest User

Untitled

a guest
Jul 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #if UNITY_ANDROID
  2. // Collect the user's input as a string
  3. _currentInput = Input.inputString;
  4.  
  5. // If we hit the backspace
  6. if (_currentInput.Length == _previousInput.Length - 1)
  7. {
  8. // Backspace
  9. newHSTemplate.BackSpace();
  10.  
  11. _previousInput = _currentInput;
  12. }
  13. // If we hit another key
  14. else if (_currentInput.Length == _previousInput.Length + 1)
  15. {
  16. newHSTemplate.AddCharacter(_currentInput[_currentInput.Length - 1]);
  17.  
  18. _previousInput = _currentInput;
  19. }
  20. #endif
Add Comment
Please, Sign In to add comment