예제 #1
0
 public void removeObserver(MessageOutlet o)
 {
     if (!messageOutlet.Any())
     {
         messageOutlet.Remove(o);
     }
 }
 // Use this for initialization
 void Start()
 {
     outlet = new MessageOutlet();
     outlet.AddSignalToMessageFilter("UDM");
     outlet.AddSignalToMessageFilter("LEFT");
     meetingDisplay = GameObject.FindGameObjectWithTag("MeetingInfoText").GetComponent <MeetingInfoDisplay>();
 }
 // Use this for initialization
 void Start()
 {
     slideChanged = false;
     outlet       = new MessageOutlet();
     outlet.AddSignalToMessageFilter("CHNG");
     meetingDisplay = GameObject.FindGameObjectWithTag("MeetingInfoText").GetComponent <MeetingInfoDisplay>();
 }
예제 #4
0
 // Use this for initialization
 void Start()
 {
     listOfPositions[0] = new Vector3(2.06f, 0.49f, 2.60f);
     listOfPositions[1] = new Vector3(1.379f, 0.49f, 2.60f);
     listOfPositions[2] = new Vector3(0.868f, 0.49f, 2.60f);
     listOfPositions[3] = new Vector3(0.335f, 0.49f, 2.60f);
     listOfPositions[4] = new Vector3(-0.198f, 0.49f, 2.60f);
     listOfPositions[5] = new Vector3(-0.32f, 0.49f, 4.93f);
     listOfPositions[6] = new Vector3(0.335f, 0.49f, 4.93f);
     listOfPositions[7] = new Vector3(0.868f, 0.49f, 4.93f);
     listOfPositions[8] = new Vector3(1.379f, 0.49f, 4.93f);
     listOfPositions[9] = new Vector3(2.06f, 0.49f, 4.93f);
     for (int i = 0; i < listOfPositions.Count; i++)
     {
         exists[0] = true;
     }
     messageOutlet = new MessageOutlet();
     messageOutlet.AddSignalToMessageFilter("UDM");
 }
예제 #5
0
 public void registerObserver(MessageOutlet o)
 {
     messageOutlet.Add(o);
 }