public void addGem() { gemsObtained++; gameHUD.AddGem(); if (gemsObtained == numGems) { GameCompleted(); } }