/// <summary> /// 子弹爆炸特效 /// </summary> private void BulletExplosionFeature() { AudiosPoolManager.PointFixedAudio(mBullet.ExplosionAudio.ToString(), gameObject.transform.position, 0.25f); Effect effect = EffectsPoolManager.PointFixedEffect(mBullet.ExplosionEffect.ToString(), gameObject.transform.position, mBullet.Size); EffectCollider(mBullet.BulletType, effect, mBullet); }
private void PlayDeathEffect() { EffectsPoolManager.PointFixedEffect(EffectType.TankExplosion.ToString(), Position, 1f); mAudioSource.clip = mTankExplosion; mAudioSource.Play(); }