Move part of the input module to Cryville.Input.
This commit is contained in:
@@ -6,6 +6,7 @@ using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UI;
|
||||
using Logger = Cryville.Common.Logging.Logger;
|
||||
using unity = UnityEngine;
|
||||
|
||||
namespace Cryville.Crtr {
|
||||
public class Console : MonoBehaviour {
|
||||
@@ -36,8 +37,8 @@ namespace Cryville.Crtr {
|
||||
|
||||
void Update() {
|
||||
if (
|
||||
Input.GetKeyDown(KeyCode.Return)
|
||||
|| Input.GetKeyDown(KeyCode.KeypadEnter)
|
||||
unity::Input.GetKeyDown(KeyCode.Return)
|
||||
|| unity::Input.GetKeyDown(KeyCode.KeypadEnter)
|
||||
) {
|
||||
Submit();
|
||||
InputBox.text = "";
|
||||
|
Reference in New Issue
Block a user