16 lines
333 B
C#
16 lines
333 B
C#
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class FaceAnim : MonoBehaviour
|
||
|
|
{
|
||
|
|
public Transform Player;
|
||
|
|
public float Speed;
|
||
|
|
|
||
|
|
public void Update()
|
||
|
|
{
|
||
|
|
transform.position = Vector3.Lerp(transform.position, Player.position, Speed * Time.deltaTime);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|