Hey, I was making a camera movement but Im getting CS8025 ERROR:Parsing Error and I don’t know how to fix it.Please someone help me!!(PS. IM NEW IN THIS FORUM)
My code
using UnityEngine;
using System.Collections;
public class Controle_Camera : MonoBehaviour {
public GameObject player;
public float speed = 5.0f;
private Vector3 offset;
void Start ()
{
offset = transform.position - player.transform.position;
}
void LateUpdate ()
{
transform.position = player.transform.position + offset;
}
void Update ()
{
if(Input.GetKey(KeyCode.RightArrow))
{
transform.position = new Vector3(speed * Time.deltaTime,0,0);
}
if(Input.GetKey(KeyCode.LeftArrow))
{
transform.position = new Vector3(speed * Time.deltaTime,0,0);
}
if(Input.GetKey(KeyCode.DownArrow))
{
transform.position = new Vector3(0,speed * Time.deltaTime,0);
}
if(Input.GetKey(KeyCode.UpArrow))
{
transform.position = new Vector3(0,speed * Time.deltaTime,0);
}
}