public void ToggleDownloaded() { if (this.downloaded == true) { GlobalVariables.SetQuestion(GetQuestionData()); SetIsDownloaded(false); } else { GlobalVariables.DeleteQuestion(GetQuestionData()); SetIsDownloaded(true); } }
public void DeleteQuestion() { GlobalVariables.DeleteQuestion(GetQuestionData()); Destroy(gameObject); }