Hello.
I am starting a Roll-A-Ball and an error that says this come up no matter what. It is
The referenced script on this Behaviour (Game Object ‘Player’) is missing!
I have tried a lot if I could I have help that would be great. Script:
using UnityEngine;
using System.Collections;
public class CameraController : MonoBehaviour
{
public GameObject player;
private Vector3 offset;
void Start()
{
offset = transform.position - player.transform.position;
}
void LateUpdate()
{
transform.position = player.transform.position + offset;
}
}
I use Microsoft Studio C# 2015. Windows 10 Dell.