// Use this for initialization void Start() { pontos = GameObject.Find("Sexta").GetComponent <Ponto> (); pontoBola = GameObject.Find("Ponto").GetComponent <AddForcaABola>(); }
void Start() { this.GetComponent <Collider2D> ().isTrigger = true; addforce = GameObject.Find("Ponto").GetComponent <AddForcaABola> (); trava = true; }
void Start() { this.GetComponent <Collider2D> ().isTrigger = true; pontoBola = GameObject.Find("Ponto").GetComponent <AddForcaABola>(); // precisa disso para poder verificar se o usuario ta clicando ou nao para lançar a bola, se tiver nao pode destruir a bola }