반응형
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Example : MonoBehaviour
{
void Update()
{
if(Input.GetKey(KeyCode.A))
{
Debug.Log("Press A");
}
if (Input.GetKey(KeyCode.UpArrow))
{
Debug.Log("Press UpArrow");
}
if (Input.GetKey(KeyCode.Space))
{
Debug.Log("Press Space");
}
}
}
반응형