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