LookAtPlayer

using UnityEngine;
using System.Collections;

public class LookAtPlayer : MonoBehaviour 
{
  private Transform playerPosition;
  
  void Start()
  {
    playerPosition = GameObject.Find("Player").transform;
  }    

  void LateUpdate( ) 
  {
    transform.LookAt(playerPosition);
  }
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.40.189