Exemplo n.º 1
0
    public void Unsubcribe(EventActionDel action)
    {
        _eventAction -= action;
#if UNITY_EDITOR
        var st         = new System.Diagnostics.StackTrace();
        var stackFrame = st.GetFrame(1);
        _subcribers.Remove(stackFrame.GetMethod().DeclaringType.Name);
#endif
    }
Exemplo n.º 2
0
 public void UnsubcribeEditor(EventActionDel action, string subcriber)
 {
     _eventAction -= action;
     _subcribers.Remove(subcriber);
 }
Exemplo n.º 3
0
 public void SubcribeEditor(EventActionDel action, string subcriber)
 {
     _eventAction += action;
     _subcribers.Add(subcriber);
 }