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); }
转载于:https://www.cnblogs.com/fuperfun/p/5341507.html