게임오브젝트가 플레이어를 따라오도록 합니다. * Rotate.cs using System.Collections; using System.Collections.Generic; using UnityEngine; public class Rotate : MonoBehaviour { public GameObject target; private void OnCollisionEnter2D(Collision2D collision) { if(collision.gameObject.tag == "Bullet") { transform.position = new Vector3( transform.position.x + 1, 0, 0 ); } } void Start() { } void Update() { Vector3 dir =..