Answers for "have something point at the player"

C#
0

have something point at the player

using System;
using UnityEngine;

public class LookAtTarget : MonoBehaviour
{
     public Transform target;
     
  void Update()
  {
       if(target != null)
       {
            transform.LookAt(target);
       }
  }
  
}
Posted by: Guest on August-14-2020

Code answers related to "have something point at the player"

C# Answers by Framework

Browse Popular Code Answers by Language