private void OnEnable() { AudioService.PlayOneShot(gameObject, "Collect Points"); }
private void OnEnable() { AudioService.PlayOneShot(gameObject, "Activate Extralife"); }
/** * Activate the power-up when collected. */ protected override void CollectPowerup(Collider2D collider) { GetColliderPlayer(collider).ActivateMushroomPowers(); AudioService.PlayOneShot(gameObject, "Collect Mushroom"); base.CollectPowerup(collider); }
private void Start() { AudioService.PlayLoop(gameObject, "Game Music"); }
/** * {inheritDoc} */ public override void OnHeadCollision() { AudioService.PlayOneShot(gameObject, "Shell Collide"); stoppedTime = Time.time; ActivateShell(); }
private void OnEnable() { AudioService.PlayOneShot(gameObject, "Activate Mushroom"); }
private void OnEnable() { AudioService.PlayOneShot(gameObject, "Activate Flower"); }
private void OnEnable() { AudioService.PlayOneShot(gameObject, "Player Fire"); Destroy(gameObject, 2.5f); }
/** * Activate the power-up when collected. */ protected override void CollectPowerup(Collider2D collider) { AudioService.PlayOneShot(gameObject, "Collect Extralife"); base.CollectPowerup(collider); }