Beispiel #1
0
 void OnTriggerEnter(Collider c)
 {
     //trigger for collecting bones
     if (isEaten == false)
     {
         if (c.tag == "ball" || c.tag == "tiger")
         {
             isEaten = true;
             Destroy(gameObject);
             LevelGoal.points += 5;
             lg.updateBones();
         }
     }
 }