Ejemplo n.º 1
0
 public void ColliderTriggered(string name)
 {
     if (name == "Score Trigger Up")
     {
         passedTop = true;
         timer     = 0f;
     }
     if (name == "Score Trigger Down" && passedTop && timer < 1f)
     {
         scoreKeeper.AddOnePoint();
         passedTop = false;
     }
 }