using System.Collections; using System.Collections.Generic; using UnityEngine; public class LookCamera : MonoBehaviour { public Transform camera_transform; // Start is called before the first frame update void Start() { camera_transform = Camera.main.transform; } // Update is called once per frame void Update() { transform.rotation = camera_transform.rotation; } }