Пример #1
0
        public void create(Question question, int testId)
        {
            QuestionCreator questionCreator = new QuestionCreator(unswerManipalator,
                                                                  queryConfigurator);

            questionCreator.create(question, testId);
        }
Пример #2
0
    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();
        }
Пример #4
0
 private void Awake()
 {
     gm              = GameObject.FindGameObjectWithTag("GameManager").GetComponent <GameManager>();
     storageSys      = GameObject.FindGameObjectWithTag("GameManager").GetComponent <StorageSys>();
     questionCreator = GameObject.FindGameObjectWithTag("QuestionCreator").GetComponent <QuestionCreator>();
 }