// Update is called once per frame void FixedUpdate() { RD.AddForce(Targetdirection * bulletspeed, FM); if (gameObject.transform.position.y > 2.5 || gameObject.transform.position.y < -2.5) { DS.EXDestroy(); } //子彈跑出邊界時刪除子彈 }