Exemple #1
0
 public void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Plate")
     {
         Scorer scorer = other.GetComponent <Scorer>();
         // display a message
         if (scorer.ClearPlateAndScore())
         {
             StartCoroutine(GoodMessage());
         }
         else
         {
             StartCoroutine(BadMessage());
         }
     }
 }