14 lines
225 B
C#
14 lines
225 B
C#
using UnityEngine;
|
|
|
|
[ExecuteAlways]
|
|
public class CameraFollower : MonoBehaviour
|
|
{
|
|
public GameObject Player;
|
|
|
|
void Update()
|
|
{
|
|
if (Player)
|
|
transform.position = Player.transform.position;
|
|
}
|
|
}
|