mirror of
https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
synced 2025-06-10 22:20:40 +02:00
feat: json loader (#37)
This commit is contained in:
12
Assets/Scripts/PlayerCamera.cs
Normal file
12
Assets/Scripts/PlayerCamera.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class PlayerCamera : MonoBehaviour
|
||||
{
|
||||
public GameObject playerObject;
|
||||
|
||||
public void Update()
|
||||
{
|
||||
transform.position = new Vector3(playerObject.transform.position.x, transform.position.y, transform.position.z);
|
||||
// transform.position = new Vector3(player.transform.position.x, player.transform.position.y, transform.position.z);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user