public void create(Question question, int testId) { QuestionCreator questionCreator = new QuestionCreator(unswerManipalator, queryConfigurator); questionCreator.create(question, testId); }
public void AddQuestion(string name) { QuestionCreator newObject = new QuestionCreator(name); string objjson = JsonUtility.ToJson(newObject); AddObjectToJson(jsonQ, objjson, "Q"); ObjectsFromJson(); WriteJson(pathQ, ApathQ, "Q"); }
public void Execute(object parameter) { // Need to share viewmodel or at least question list<Frage> between two forms. QuestionCreator qc = new QuestionCreator(); RaiseEvent(); qc.Show(); }
private void Awake() { gm = GameObject.FindGameObjectWithTag("GameManager").GetComponent <GameManager>(); storageSys = GameObject.FindGameObjectWithTag("GameManager").GetComponent <StorageSys>(); questionCreator = GameObject.FindGameObjectWithTag("QuestionCreator").GetComponent <QuestionCreator>(); }