Beispiel #1
0
        public static void Subscribe(Event e, onEventDelegate d)
        {
            EventBulletin eb = GetInstance();

            lock (eb)
            {
                eb.phoneBook[(int)e].Add(d);
            }
        }
Beispiel #2
0
        public static EventBulletin GetInstance()
        {
            if (instance == null)
            {
                instance = new EventBulletin();
            }

            return(instance);
        }