Skip to content
Snippets Groups Projects
Commit ad2835ce authored by Miika Toivanen's avatar Miika Toivanen
Browse files

CameraScript.cs

parent 74e28112
No related branches found
No related tags found
No related merge requests found
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraScript : MonoBehaviour
{
public Transform target;
void Update()
{
transform.position = new Vector3(target.position.x, 0, -10);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment