设置子弹初始速度的方法
public void BulletShootting(float Speed) { transform.Translate(Vector3.up * speed * Time.deltaTime); if (transform.position.y > 5.2f) { Destroy(this.gameObject); }
public void BulletShootting(float Speed) { transform.Translate(Vector3.up * speed * Time.deltaTime); if (transform.position.y > 5.2f) { Destroy(this.gameObject); }