На самой сцене он есть, но его спрайта нет.
if (Input.GetMouseButton(0))
{
Instantiate(bullet, shotPoint.position, transform.rotation);
timeBtwShots = startTimeBtwShots;
}
Выше код отвечающий за условие спавна
public class Bullet : MonoBehaviour
{
public float speed;
public float lifetime;
public float distance;
public int damage;
public LayerMask whatIsSolid;
private void Update()
{
RaycastHit2D hitInfo = Physics2D.Raycast(transform.position, transform.up, distance, whatIsSolid);
if (hitInfo.collider != null)
{
Destroy(gameObject);
}
transform.Translate(Vector2.up * speed * Time.deltaTime);
}
}