/// <summary> /// method that helps classes that inherits this class to subscribe to events /// </summary> /// <param name="n">number of the event to subscribe to</param> /// <param name="a">the delegate you wish to subscribe to the event</param> public void Subscribe(Ids ids, BossDelegate a) { if (ids == Ids.id1) { event1 += a; } else if (ids == Ids.id2) { event2 += a; } }
/// <summary> /// method that helps classes that inherits this class to subscribe to events /// </summary> /// <param name="n">number of the event to subscribe to</param> /// <param name="a">the delegate you wish to subscribe to the event</param> public void Subscribe(byte n, BossDelegate a) { if (n == 1) { event1 += a; } else if (n == 2) { event2 += a; } }