console tem essas msg erro:
The referenced script (ControlaCamera) on this behaviour is missing!
the reference script on this behaviour (Game Object:'Main Camera') is missing
Assets\ControlaCamera.cs(14,19); error CS0029:Cannot implicitly convert type 'UnityEngine.Transform' to 'UnityEngine.GameObject
Os códigos:
using System.Collections using System.Collections.Generic using UnityEngine
public class ControlaCamera : MonoBehaviour {
public GameObject Jogador;
//Start is called before the first frame update void Start() { Jogador = GetComponent(); }
//Update is called once per frame void Update() { transform.position = Jogadir.transform.position } }
No inspector aparece a seguinte mensagem:
The associated script can not be loaded. Please fix anycomplie errors and assign a valid script
Ja olhei o post anterior com o mesmo problema, mas nao resolveu o meu caso.