using System.Collections; using System.Collections.Generic; using UnityEngine; public class GamesLookAt : MonoBehaviour { // Start is called before the first frame update public GameObject go; void Start() { } // Update is called once per frame void Update() { } private void LateUpdate() { if (go != null) this.transform.LookAt(new Vector3(go.transform.position.x, 0, go.transform.position.z)); } }