/// <summary> /// 发射炮弹,后坐力展示 /// </summary> /// <param name="cannonballSpeed"></param> /// <returns></returns> void Fire(Vector3 cannonballSpeed) //发射,炮弹在这里出膛! { for (int i = 0; i < firePosition.Length; i++) { CannonBall canball = ParticleController.FireConnonBall(firePosition[i].position, cannonballSpeed, BulletType.normal, data.deviation); //再注释回来 //canball.SetCannonBall(cannonballSpeed, .3f); canball.data.belongTo = belongTo; } if (isVisible) { ParticleController.Play(firePosition[0].position, CannonBarrel.rotation, ExploseType.normal); if (recoilAnim) { recoilAnim.Play(); } } canFire = true; }