FairyGUI.EventDispatcher.GetEventBridge C# (CSharp) 메소드

GetEventBridge() 개인적인 메소드

private GetEventBridge ( string strType ) : EventBridge
strType string
리턴 EventBridge
        internal EventBridge GetEventBridge(string strType)
        {
            if (_dic == null)
                _dic = new Dictionary<string, EventBridge>();

            EventBridge bridge = null;
            if (!_dic.TryGetValue(strType, out bridge))
            {
                bridge = new EventBridge(this);
                _dic[strType] = bridge;
            }
            return bridge;
        }

Usage Example

예제 #1
0
 public EventListener(EventDispatcher owner, string type)
 {
     _bridge = owner.GetEventBridge(type);
     _type   = type;
 }