////////////////////////////////////////////////////////////////////////// public void PropagateEvent(EventSystemManagerBase.Event e) { if (m_Lock) { return; } m_Lock = true; { foreach (var n in m_Filters) { if (n.Check(e) == false) { return; } } foreach (var n in m_Recivers) { n.iProcess(e); } foreach (var n in m_PropagationNodes) { n.PropagateEvent(e); } } m_Lock = false; }
////////////////////////////////////////////////////////////////////////// public override void Send(EventSystemManagerBase.Event e) { if (e == null) { return; } foreach (var n in m_Listners) { n.iProcess(e); } }
public override void Send(EventSystemManagerBase.Event e) { if (e == null) { return; } foreach (var n in m_PropagationNodes) { n?.PropagateEvent(e); } base.Send(e); }
public override void iProcess(EventSystemManagerBase.Event e) { Debug.Log(gameObject.name); }
public override bool Check(EventSystemManagerBase.Event e) { return(m_Open); }
public abstract void iProcess(EventSystemManagerBase.Event e);
public abstract bool Check(EventSystemManagerBase.Event e);