private static IEnumerator <float> SendCassie(CassieAnnouncement cassie) { yield return(Timing.WaitForSeconds(cassie.Delay)); var ev = new SendingCassieAnnouncementEventArgs(cassie.Content, cassie.Delay); if (ev.IsAllowed) { Cassie.Message(cassie.Content, false, false); } }
public static void OnSendingCassieAnnouncements(SendingCassieAnnouncementEventArgs ev) => SendingCassieAnnouncements.InvokeSafely(ev);