Example #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.name == "Knife")
     {
         papaRoomba.BalloonPopped();
         other.transform.parent.gameObject.GetComponent <RoombaController>().GetScore(balloonScore);
         GameObject.Instantiate(popParticle, transform.position, Quaternion.identity);
         gameObject.SetActive(false);
     }
 }