/// <summary> /// Called when level is loaded or entity is added to scene /// </summary> public override void OnLevelLoaded() { base.OnLevelLoaded(); tankSound = AudioManager.AddPositionalAudio(MonoGearGame.GetResource <SoundEffect>("Audio/AudioFX/Tank Movement"), 0, 250, Position, true); destroyedSprite = MonoGearGame.GetResource <Texture2D>("Sprites/BrokenAbrams"); }
/// <summary> /// Method that executes when the level is loaded. /// </summary> public override void OnLevelLoaded() { base.OnLevelLoaded(); // Add a sound effect to the car carSound = AudioManager.AddPositionalAudio(MonoGearGame.GetResource <SoundEffect>("Audio/AudioFX/Deja Vu"), 0.3f, 500, Position, true); destroyedSprite = MonoGearGame.GetResource <Texture2D>("Sprites/BrokenCar"); }
/// <summary> /// Method that executes when the level is loaded. /// </summary> public override void OnLevelLoaded() { base.OnLevelLoaded(); birdSound = AudioManager.AddPositionalAudio(MonoGearGame.GetResource <SoundEffect>("Audio/AudioFX/Bird_sounds"), 1, 210, Position, true); birdSound.Volume = 0.2f; destroyedSprite = MonoGearGame.GetResource <Texture2D>("Sprites/DeadBird"); }
/// <summary> /// Method that executes when the level is loaded. /// </summary> public override void OnLevelLoaded() { base.OnLevelLoaded(); // Find the player player = MonoGearGame.FindEntitiesWithTag("Player")[0] as Player; //Play the explotion sound on creation sound = AudioManager.AddPositionalAudio(MonoGearGame.GetResource <SoundEffect>("Audio/AudioFX/Explosion"), 1, 1200, Position, false); sound.Position = Position; sound.Volume = 0.8f; }
public void Sleep() { if (state != State.Sleeping) { Enabled = false; Z = -1; // Display below player AnimationRunning = false; AnimationCurrentFrame = 1; state = State.Sleeping; sound = AudioManager.AddPositionalAudio(MonoGearGame.GetResource <SoundEffect>("Audio/AudioFX/snoreWhistle"), 1, 150, Position, true); sound.Volume = 0.2f; } }
/// <summary> /// Method that executes when the level is loaded. /// </summary> public override void OnLevelLoaded() { base.OnLevelLoaded(); player = MonoGearGame.FindEntitiesWithTag("Player")[0] as Player; if (props == null) { props = MonoGearGame.GetResource <Texture2D>("Sprites/Soisoisoisoisoisoisoisoisoisoisoisoisoisoisoisois"); } heliSound = AudioManager.AddPositionalAudio(MonoGearGame.GetResource <SoundEffect>("Audio/AudioFX/Helicopter Sound Effect"), 1, 300, Position, true); heliSound.Volume = 0.1f; destoyedSprite = MonoGearGame.GetResource <Texture2D>("Sprites/BrokenRoflcopter"); }
/// <summary> /// Method that executes when the level is loaded. /// </summary> public override void OnLevelLoaded() { base.OnLevelLoaded(); jeepSound = AudioManager.AddPositionalAudio(MonoGearGame.GetResource <SoundEffect>("Audio/AudioFX/Car"), 0, 300, Position, true); jeepSound.Volume = 0.1f; playerSprite = MonoGearGame.GetResource <Texture2D>("Sprites/WillysPlayer"); destroyedSprite = MonoGearGame.GetResource <Texture2D>("Sprites/BrokenWillys"); jeepSprite = MonoGearGame.GetResource <Texture2D>("Sprites/Willys"); // Enter on level load, for example heli chase scene if (autoenter) { Enter(); } }
/// <summary> /// Method that executes when the level is loaded. /// </summary> public override void OnLevelLoaded() { base.OnLevelLoaded(); boatSound = AudioManager.AddPositionalAudio(MonoGearGame.GetResource <SoundEffect>("Audio/AudioFX/Car_sound"), 0, 300, Position, true); destoyedSprite = MonoGearGame.GetResource <Texture2D>("Sprites/BrokenWillys"); }