Ejemplo n.º 1
0
 public void OnHit()
 {
     AudioManager.PlaySoundEvent(AUDIO_EVENT.MISSILE_HIT);
     ParticleSpawner.SpawnParticleEvent(PARTICLE_EVENT.EXPLOSION, this);
     GameManager.MissileDestroyed(this);
     GameManager.DestroyObject(this);
 }
Ejemplo n.º 2
0
 public override void Destroy()
 {
     AudioManager.PlaySoundEvent(AUDIO_EVENT.MISSILE_FIRE);
     ParticleSpawner.SpawnParticleEvent(PARTICLE_EVENT.EXPLOSION, this);
     base.Destroy();
     GameManager.MineDestroyed(this);
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
 public void OnHit()
 {
     AudioManager.PlaySoundEvent(AUDIO_EVENT.FENCE_HIT);
     ParticleSpawner.SpawnParticleEvent(PARTICLE_EVENT.FENCE_HIT, this);
 }