wip: PlayerMover
This commit is contained in:
13
Assets/_Content/Scripts/CameraFollower.cs
Normal file
13
Assets/_Content/Scripts/CameraFollower.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
|
||||
[ExecuteAlways]
|
||||
public class CameraFollower : MonoBehaviour
|
||||
{
|
||||
public GameObject Player;
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (Player)
|
||||
transform.position = Player.transform.position;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user