1 using UnityEngine; 2 using System.Collections; 3 4 public class Pipeupdown : MonoBehaviour { 5 public AudioSource hitMusic; 6 public AudioSource dieMusic; 7 void OnCollisionEnter(Collision other) { 8 if (other.gameObject.tag == "Player") { 9 hitMusic.Play(); 10 dieMusic.Play(); 11 GameMangger._intance.GameState = GameMangger.GAMESTATE_END; 12 } 13 } 14 }
时间: 2024-10-21 01:34:56