示例#1
0
 void OnCollisionEnter2D(Collision2D col)
 {
     if (col.gameObject.tag == "Enemy Car")
     {
         Destroy(gameObject);
         ui.gameOverActivatated();
         am.carSound.Stop();
     }
 }