标签:
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 }
标签:
原文地址:http://www.cnblogs.com/wry524/p/4947816.html