RotateAround
-
[Unity][2D] Rotation 하기프로그래밍/Unity 2021. 10. 25. 20:38
유니티에서 시계 침이 돌아가는 것을 구현하고 싶었던 나.. Summary: // ============================================================= using System.Collections; using System.Collections.Generic; using UnityEngine; public class arrow_rotation : MonoBehaviour { public float rotationSpeed; public GameObject arrow_center; // Empty Game Object // Update is called once per frame void Update() { transform.RotateAround(arrow_cente..