public void NewEvent(EventDev.Events c) { currentEvent = c; triggered = true; test.transform.position = notice; test.GetComponent <SpriteRenderer>().color = new Color(1, 1, 1, 1); timeL = timer; }
public void AddNote(EventDev.Events c) { //timeline.Add(c); notesN.Add(place(c.name, c, "name")); notesE.Add(place(c.words, c, "words")); //names.GetComponent<RectTransform>().localPosition = new Vector3(-77, 186); //nStart = names.GetComponent<RectTransform>().localPosition; //TStart = things.GetComponent<RectTransform>().localPosition - names.GetComponent<RectTransform>().localPosition; NoteUpdate(); }
public void AddThing(EventDev.Events c) { for (int i = 0; i < notesE.Count; i++) { if (notesE[i].GetComponent <TextRe>().e.id == c.id) { return; } } notesE.Add(place(c.words, c, "words")); NoteUpdate(); }
public void AddName(EventDev.Events c) { for (int i = 0; i < notesN.Count; i++) { if (notesN[i].GetComponent <TextRe>().e.id == c.id) { return; } } notesN.Add(place(c.name, c, "name")); NoteUpdate(); }
GameObject place(string txt, EventDev.Events c, string n) { GameObject s = Instantiate(prefab); s.transform.SetParent(transform); s.GetComponent <Text>().supportRichText = true; s.GetComponent <Text>().text = txt; s.name = txt; s.GetComponent <TextRe>().AddNote(c); s.GetComponent <TextRe>().SetType(n); return(s); }
public void AddNote(EventDev.Events c) { timeline.Add(c); notesN.Add(place(c.name)); notesE.Add(place(c.words)); names.GetComponent <RectTransform>().localPosition = new Vector3(-77, 186); for (int i = 0; i < timeline.Count; i++) { notesN[i].GetComponent <RectTransform>().localPosition = new Vector3(-57, 173 - i * 13); } things.GetComponent <RectTransform>().localPosition = new Vector3(-77, 156 - timeline.Count * 13); for (int i = 0; i < timeline.Count; i++) { notesE[i].GetComponent <RectTransform>().localPosition = new Vector3(-57, 143 - timeline.Count * 13 - i * 13); } }
public void NewEvent(EventDev.Events c) { if (multi) { currentEvent.Add(c); } else { currentEvent.Insert(0, c); } triggered = true; test.transform.position = notice; test.GetComponent <SpriteRenderer>().color = new Color(1, 1, 1, 1); timeL = timer; }
public void NewEvent(EventDev.Events c) { if (multi) { currentEvent.Add(c); } else { if (currentEvent.Count > 0) { currentEvent[0] = c; } else { currentEvent.Insert(0, c); } } triggered = true; test.transform.position = notice; test.GetComponent <SpriteRenderer>().color = new Color(1, 1, 1, 1); timeL = timer; notificationBox.SetActive(true); }
public void NewEvent(EventDev.Events c) { Answers.Add(c); }
public void AddNote(EventDev.Events c) { e = c; }