14 lines
269 B
C#
14 lines
269 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class PlayerFollower : MonoBehaviour
|
|
{
|
|
[SerializeField] GameObject _player;
|
|
|
|
private void LateUpdate()
|
|
{
|
|
transform.position = _player.transform.position;
|
|
}
|
|
}
|