유니티 C# 화면 터치 드래그 Touch Drag 간단 사용법


유니티 C# 화면 터치 드래그 Touch Drag 간단 사용법

코드 작성 using System.Collections; using System.Collections.Generic; using UnityEngine; public class TouchManager : MonoBehaviour { private Vector2 startPos; public float minSwipeDistY = 50f; public float minSwipeDistX = 50f; private bool firstSwipe = false; public string direction = ""; //Up, Down, Left, Right로 입력이 들어옵니다. void Update() { if (Time.timeScale == 0) { InputButtonUp(); return; } } publ..


원문링크 : 유니티 C# 화면 터치 드래그 Touch Drag 간단 사용법