Unexpected Symbol? Socorro!
using UnityEngine; using System.Collections;
public class PlayerBehaviour : MonoBehaviour {
public ArmaTest arma;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if(Input.GetButtonDown(*Fire1*}}{
}
Eu não sei mas oq fazer galera ja mechi no script tudo mas não vai me ajudem
Answer by jgodfrey · Feb 25, 2016 at 11:31 PM
This...
if(Input.GetButtonDown(*Fire1*}}{
}
should be...
if (Input.GetButtonDown("Fire1")) {
}
Thanks man i'm begginer but now it error is $$anonymous$$issingReferenceException its 730 error :c
The object of type 'Object' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object
The only thing I can say for sure is exactly what error says - you're trying to access an object that is null. You can't do that. Without code though, I have no idea why the object is null.
Your answer
Follow this Question
Related Questions
Animation Scripting Issue,Walking Animation Script Not Working 0 Answers
Game doesn't work 1 Answer
Error : Failed to build apk -1 Answers
ComponentChunkIterator is not liking me.. 0 Answers
Missing the class attribute 'ExtensionOfNativeClass' 4 Answers