Unity로 만든 공 굴리기 게임[My_First_Game: Roll The Ball]
2021. 7. 14. 23:27
공부/기타
CameraMove.cs using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraMove : MonoBehaviour { Transform playerTransform; //게임오브젝트의 위치, 회전 그리고 스케일(scale)을 나타냅니다. Vector3 Offset; // void Awake() { playerTransform = GameObject.FindWithTag("Player").transform; // Player의 위치를 알려준다. Offset = transform.position - playerTransform.position; // 카메라의 상대위치를 구한다. } vo..