모바일 3

[유니티/C#] 터치로 화면이동

참고한 블로그 https://blog.naver.com/dlehdgh1120/221706425033 public class CameraController : MonoBehaviour { //* 터치, 마우스 카메라 컨트롤러 *// Vector2 clickPoint; Vector3 touchStart; void Awake() { // 카메라 배율 초기화 Camera.main.orthographicSize = 10; } void Update() { if (Input.GetMouseButtonDown(0)) { // 마우스가 눌렸을 때 마우스 좌표 저장 // clickPoint = Input.mousePosition; touchStart = Camera.main.ScreenToWorldPoint(Input.m..

[유니티/C#] 터치/마우스로 카메라 이동

출처 - 참고한 블로그 https://bloodstrawberry.tistory.com/686 유니티 - 드래그로 카메라 이동(Drag and Move Camera) Unity 전체 링크 메인 카메라에 스크립트를 추가한다. 테스트하기 쉽게 왼쪽의 Alt가 입력된 경우에만 카메라가 움직이도록 하자. void Update() { if (Input.GetKeyDown(KeyCode.LeftAlt)) isAlt = true; if (In.. bloodstrawberry.tistory.com 전체 코드 public class CameraTest : MonoBehaviour { float dragSpd = 30.0f; Vector2 clickPoint; void Awake() { // 카메라 배율 초기화 Camer..

[유니티/C#] 모바일 푸시알림

https://assetstore.unity.com/packages/tools/integration/simple-android-notifications-free-68626?locale=ko-KR Simple Android Notifications Free | 기능 통합 | Unity Asset Store Use the Simple Android Notifications Free from Hippo on your next project. Find this integration tool & more on the Unity Asset Store. assetstore.unity.com 에셋 추가로 간단하고 빠르게 푸시알림 구현이 가능하다. 사용 시에는 using Assets.SimpleAndroidNotific..