mirror of
https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
synced 2024-12-18 21:44:51 +01:00
13 lines
386 B
C#
13 lines
386 B
C#
using UnityEngine;
|
|
|
|
public class CameraScript : 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);
|
|
}
|
|
}
|