new input actions, basic onmove function that logs input values
This commit is contained in:
13
Assets/Scripts/ExitGame.cs
Normal file
13
Assets/Scripts/ExitGame.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ExitGame : MonoBehaviour
|
||||
{
|
||||
private void Update() {
|
||||
if (Input.GetKey("escape")) {
|
||||
Debug.Log("Application is quitting!!");
|
||||
Application.Quit();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user