hii,I was trying to make a camera follow the character, i also follow a tutorial there he done exactly the same thing as mine but he is using a Mac and I’m on windows and unity 2017.1.
when i saved the script it says “Assets/chaseCamera.cs(7,12): error CS0118: UnityEngine.Component.gameObject' is a
property’ but a `type’ was expected”
please see the code blow and let me know what I’m doing wrong.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class chaseCamera : MonoBehaviour {
public transform target;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update ()
{
transform.LookAt (target);
}
}