public void BulletShootting(float Speed) { transform.Translate(Vector3.up * speed * Time.deltaTime); if (transform.position.y > 5.2f) { Destroy(this.gameObject); }
时间: 2024-09-29 12:34:02
public void BulletShootting(float Speed) { transform.Translate(Vector3.up * speed * Time.deltaTime); if (transform.position.y > 5.2f) { Destroy(this.gameObject); }