public void OnBackSpacePressed() { if (OnBackspace != null) { OnBackspace.Invoke(this, null); } }
// Update is called once per frame void Update() { var current = KeyboardInput.current; if (current.backspaceKey.wasPressedThisFrame) { OnBackspace?.Invoke(); } if (current.enterKey.wasPressedThisFrame) { OnStringSubmitted?.Invoke(currentString); } }
public void OnBackspacePressed() { OnBackspace?.Invoke(null, null); }