using System.Collections;

using System.Collections.Generic;

using UnityEngine;


public class bulletmove : MonoBehaviour

{

public int bulletspeed=2;//子弹速度

private Rigidbody rb;


// Start is called before the first frame update

void Start()

{

rb = GetComponent<Rigidbody>();

rb.velocity = transform.forward * bulletspeed;//子弹飞行速度

}


// Update is called once per frame

void Update()

{


}

}