Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if UNITY_ANDROID
- // Collect the user's input as a string
- _currentInput = Input.inputString;
- // If we hit the backspace
- if (_currentInput.Length == _previousInput.Length - 1)
- {
- // Backspace
- newHSTemplate.BackSpace();
- _previousInput = _currentInput;
- }
- // If we hit another key
- else if (_currentInput.Length == _previousInput.Length + 1)
- {
- newHSTemplate.AddCharacter(_currentInput[_currentInput.Length - 1]);
- _previousInput = _currentInput;
- }
- #endif
Add Comment
Please, Sign In to add comment