public void BTN_Test() { NotificationDirectory.Init(); NotificationTicket _noti = new NotificationTicket(); _noti .SetCondition(new Cond_GameType() { gameType = "PrizePoker Game" }) .SetCondition(new Cond_HallType() { hallId_contain = 1 }) .ConditionFilter((BroadcastType t) => { if ((t & BroadcastType.Marquee) == BroadcastType.Marquee) { Debug.Log("Marquee"); } if ((t & BroadcastType.ChatMsg) == BroadcastType.ChatMsg) { Debug.Log("ChatMsg"); } if ((t & BroadcastType.Pushs) == BroadcastType.Pushs) { Debug.Log("Pushs"); } }); }
public void ConditionFilter(Action <BroadcastType> callback) { BroadcastType _outputType = BroadcastType.None; _outputType = NotificationDirectory.ConditionCompare(conditionDatas); callback.Invoke(_outputType); }