示例#1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.tag == "BigBug")
     {
         gameManager.AddScore(player, other.GetComponent <BugMover>().GetScore(), other.transform.position);
         audio.Play();
         Destroy(other.gameObject);
     }
 }