| 12345678910111213141516171819202122 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class KeyBoardInterface : MonoBehaviour
- {
- void Update()
- {
- if (Input.GetKeyDown(KeyCode.LeftArrow))
- {
- KeyBoardSelector.ins.HandleInput(-1);
- }
- if (Input.GetKeyDown(KeyCode.RightArrow))
- {
- KeyBoardSelector.ins.HandleInput(+1);
- }
- if (Input.GetKeyDown(KeyCode.Return) || Input.GetKeyDown(KeyCode.KeypadEnter))
- {
- KeyBoardSelector.ins.Enter();
- }
- }
- }
|