void Start() { sameTab = false; MethodToCall = null; ID = new DefaultDataScript(); BG = GameObject.Find("GaudyBG"); ds = BG.GetComponentInChildren <ReaderDataScript>(); }
// Use this for initialization void Start() { row0 = transform.Find("ImageUploadPanel/Content/Row0"); displayImage = transform.Find("ImageUploadPanel/Content/Row0/WithImage/ImageGoesHere").GetComponent <Image>(); ds = GameObject.Find("GaudyBG").GetComponent <ReaderDataScript>(); sserial = new ReaderSerialScript(); }
private bool adding; //A bool to prevent adding two dialogue options at almost the same time /** * The dialogue manager works by having an entries list to store dialogue data along side having the GameObjects * exist outside of the script. This makes it easier to manage/retrieve data and adjust positioning. Data retrieval * is easier too. So whenever a dialogue is added, moved, or removed, the entries list has to be updated accordingly * * Every dialogue tracks its parent and it's children. They also have an index. Index increments in order from top to bottom * So if A had a child B and A also had a sibling below it C, then A=1, B=2, C=3 */ // Use this for initialization void Start() { if (entries == null) { entries = new List <DialogueEntryScript>(); } adding = false; ds = GameObject.Find("GaudyBG").GetComponent <ReaderDataScript>(); tm = ds.GetComponent <ReaderTabManager>(); //PopulateDialogue (tempButton); }
private void LoadReader(MenuCase m) { GlobalData.createCopy = false; GlobalData.resourcePath = "Reader"; //Set case //set ds.filename //ds.ReloadFile ReaderDataScript ds = GameObject.Find("GaudyBG").GetComponent <ReaderDataScript>(); ds.loadingScreen.gameObject.SetActive(true); Destroy(GameObject.Find("FinishedCasePanel")); GlobalData.caseObj = m; ds.SetFileName(m.filename); ds.ReloadFile(); }
// Use this for initialization void Start() { ds = GameObject.Find("GaudyBG").GetComponent <ReaderDataScript>(); tm = ds.GetComponent <ReaderTabManager>(); }
private void Awake() { var BG = GameObject.Find("GaudyBG"); ds = BG.GetComponentInChildren <ReaderDataScript>(); }