| | |
| | | |
| | | public bool ExecuteEvent(RichTextEventEnum type,HrefInfo href) |
| | | { |
| | | return m_RichEvents[type].Execute(type,href); |
| | | if (m_RichEvents == null || !m_RichEvents.ContainsKey(type)) |
| | | { |
| | | Debug.LogWarning($"RichTextMgr: Event type {type} not registered"); |
| | | return false; |
| | | } |
| | | |
| | | var evt = m_RichEvents[type]; |
| | | if (evt == null) |
| | | { |
| | | Debug.LogWarning($"RichTextMgr: Event handler for {type} is null"); |
| | | return false; |
| | | } |
| | | |
| | | return evt.Execute(type, href); |
| | | } |
| | | |
| | | public string GetDisplay(RichTextEventEnum type,Dictionary<string,string> dic) |