//called from GameControl whnenever player score points public void GainScore() { if (enableScoring && !scored) { if (GameControl.GetScore() >= targetScore) { scored = true; CheckObjectiveComplete(); } } }
//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(); } } }