예제 #1
0
 //called from GameControl whnenever player score points
 public void GainScore()
 {
     if (enableScoring && !scored)
     {
         if (GameControl.GetScore() >= targetScore)
         {
             scored = true;
             CheckObjectiveComplete();
         }
     }
 }
예제 #2
0
 //called from GameControl whnenever player score points
 public void GainScore()
 {
     Debug.LogWarning(enableScoring + "   " + scored + "   " + GameControl.GetScore());
     if (enableScoring && !scored)
     {
         if (GameControl.GetScore() >= targetScore)
         {
             scored = true;
             CheckObjectiveComplete();
         }
     }
 }