public void setWeapon(ObjWeapon weapon) { if (!activity.isMuted()) { Audiomanager.Play("gunload.mp3", 20); } this.weapon = weapon; }
public ObjShot(Context context, int x, int y) : base(context, "Shot", 0.025f) { setResourceID("Flyiing_Hiigh.Resources.Drawable.WeaponStuff.shot1.png"); setPosition(x, y); xSpeed = 7; resID = 0; if (!activity.isMuted()) { Audiomanager.Play("silencer.wav", 0.5); } }
public ObjBackground(Context context, int theme) : base(context, "Background", 1) { currentTheme = theme; String resID; audiomanager = new Audiomanager(); switch (theme) { case 0: resID = "Flyiing_Hiigh.Resources.Drawable.backshroom.png"; audiomanager.play("backshroom.wav"); break; case 1: resID = "Flyiing_Hiigh.Resources.Drawable.backdark.png"; audiomanager.play("backdark.mp3"); break; case 2: resID = "Flyiing_Hiigh.Resources.Drawable.backjungle.png"; audiomanager.play("backjungle.mp3"); break; case 3: resID = "Flyiing_Hiigh.Resources.Drawable.backbutterfly.png"; audiomanager.play("backbutterlfy.mp3"); break; default: resID = "Flyiing_Hiigh.Resources.Drawable.backshroom.png"; audiomanager.play("backshroom.wav"); break; } setResourceID(resID); this.xSpeed = -1; }