não vejo a bala quando clico no mouse, não sei pra onde ela ta indo e aparece o seguinte erro no console: UnassignedReferenceException: The variable CanoDaArma of ControlaArma has not been assigned. You probably need to assign the CanoDaArma variable of the ControlaArma script in the inspector. ControlaArma.Update () (at Assets/ControlaArma.cs:20)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Bala : MonoBehaviour
{
public float Velocidade;
// Update is called once per frame
void FixedUpdate()
{
GetComponent<Rigidbody>().MovePosition
(GetComponent<Rigidbody>().position +
transform.forward * Velocidade);
}
}