using System.Collections; using System.Collections.Generic; using UnityEngine; public class LookAtPlayer : MonoBehaviour { private GameObject player; void Start() { player = Camera.main.gameObject; } // Update is called once per frame void Update() { transform.LookAt(player.transform.position + (transform.position - player.transform.position) * 1.2f); } }