示例#1
0
 public void OnHit()
 {
     AudioManager.PlaySoundEvent(AUDIO_EVENT.MISSILE_HIT);
     ParticleSpawner.SpawnParticleEvent(PARTICLE_EVENT.EXPLOSION, this);
     GameManager.MissileDestroyed(this);
     GameManager.DestroyObject(this);
 }
示例#2
0
 public override void Destroy()
 {
     AudioManager.PlaySoundEvent(AUDIO_EVENT.MISSILE_FIRE);
     ParticleSpawner.SpawnParticleEvent(PARTICLE_EVENT.EXPLOSION, this);
     base.Destroy();
     GameManager.MineDestroyed(this);
 }
示例#3
0
        public void OnHit()
        {
            AudioManager.PlaySoundEvent(AUDIO_EVENT.FENCE_HIT);
            ParticleSpawner.SpawnParticleEvent(PARTICLE_EVENT.FENCE_HIT, this);

            FenceHitMessage msg = new FenceHitMessage(fence_id);

            InputQueue.AddToQueue(msg);
        }
示例#4
0
 public void OnHit()
 {
     AudioManager.PlaySoundEvent(AUDIO_EVENT.FENCE_HIT);
     ParticleSpawner.SpawnParticleEvent(PARTICLE_EVENT.FENCE_HIT, this);
 }