반응형
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");
}
}
}
반응형
'개발 > C#' 카테고리의 다른 글
유니티 C# 씬 로드 동기, 비동기 간단 사용법 Load Scene Async (0) | 2022.06.21 |
---|---|
유니티 C# 랜덤 난수 생성 Random.Range 간단 사용법 (0) | 2022.06.21 |
유니티 C# 특수문자 제한 간단 사용법 input text (0) | 2022.06.21 |
유니티 C# 캐릭터 키보드 이동 간단 구현 (0) | 2022.06.20 |
유니티 C# 윈도우 창 애니메이션 Window Animation 간단 사용법 (0) | 2022.06.20 |
유니티 C# CSV 파일 저장, 불러오기 Read, Write 간단 사용법 (1) | 2022.06.20 |
유니티 C# 인앱결제 시스템 IAP Manager 간단 사용법 (0) | 2022.06.19 |
유니티 C# 인터넷 연결 상태 확인 Network Connect 간단 사용법 (0) | 2022.06.19 |
댓글