示例#1
0
 private void OnEnable()
 {
     AudioService.PlayOneShot(gameObject, "Collect Points");
 }
 private void OnEnable()
 {
     AudioService.PlayOneShot(gameObject, "Activate Extralife");
 }
示例#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);
 }
示例#4
0
 private void Start()
 {
     AudioService.PlayLoop(gameObject, "Game Music");
 }
 /**
  * {inheritDoc}
  */
 public override void OnHeadCollision()
 {
     AudioService.PlayOneShot(gameObject, "Shell Collide");
     stoppedTime = Time.time;
     ActivateShell();
 }
示例#6
0
 private void OnEnable()
 {
     AudioService.PlayOneShot(gameObject, "Activate Mushroom");
 }
示例#7
0
 private void OnEnable()
 {
     AudioService.PlayOneShot(gameObject, "Activate Flower");
 }
示例#8
0
 private void OnEnable()
 {
     AudioService.PlayOneShot(gameObject, "Player Fire");
     Destroy(gameObject, 2.5f);
 }
示例#9
0
 /**
  * Activate the power-up when collected.
  */
 protected override void CollectPowerup(Collider2D collider)
 {
     AudioService.PlayOneShot(gameObject, "Collect Extralife");
     base.CollectPowerup(collider);
 }