Beispiel #1
0
 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;
 }
Beispiel #2
0
    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();
    }
Beispiel #3
0
 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();
 }
Beispiel #4
0
 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();
 }
Beispiel #5
0
    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);
    }
Beispiel #6
0
 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);
     }
 }
Beispiel #7
0
    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;
    }
Beispiel #8
0
    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);
    }
Beispiel #9
0
 public void NewEvent(EventDev.Events c)
 {
     Answers.Add(c);
 }
Beispiel #10
0
 public void AddNote(EventDev.Events c)
 {
     e = c;
 }