예제 #1
0
 private void OnCollisionEnter(Collision collision)
 {
     if (collision.collider.gameObject.CompareTag("Ball"))
     {
         setcolor.health--;
         setcolor.UpdateColorAndHealth();
         scoreboard.IncrementScore();
     }
 }