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