public void CatchBug(string bugType) { bugCounter++; uiController.AddBug(); if (bugCounter == bugGoal) { Debug.Log("End Game"); } }