fly bird 案例代码_Pipeupdown

 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 }

 

你可能感兴趣的:(fly bird 案例代码_Pipeupdown)