void Awake() { ui = (QuestionaireUI)useriinterface; data = (DataToCollect)dataToCollect; data.Init(); }
public void SaveQuestionaire(DataToCollect questionaire) { DataToCollectUpload q = (DataToCollectUpload)questionaire; string json = JsonUtility.ToJson(q); StartCoroutine(SaveData(json)); }
public void EditorBuild(int i) { #if UNITY_EDITOR ui = (QuestionaireUI)useriinterface; data = (DataToCollect)dataToCollect; data.Init(); #endif string referenceName = data.questionaire.parts[i].referenceName; Build(referenceName); }