/// <summary>
 /// 移除UI
 /// </summary>
 /// <param name="key">键值</param>
 /// <param name="reddot">红点组件</param>
 public void UnRegisterReddot(string key, Reddot reddot)
 {
     CheckInit();
     if (m_ReddotNodeDic.TryGetValue(key, out ReddotNode reddotNode))
     {
         reddotNode.UnRegisterReddot(reddot);
         reddot.SetActive(false);
     }
     else
     {
         throw new XFrameworkException($"[红点系统] 红点树中没有key为[{key}]的节点,请添加对应节点或更改key");
     }
 }
Example #2
0
 /// <summary>
 /// 移除UI
 /// </summary>
 /// <param name="key">键值</param>
 /// <param name="reddot">红点组件</param>
 public void UnRegisterReddot(string key, Reddot reddot)
 {
     CheckInit();
     if (m_ReddotNodeDic.TryGetValue(key, out ReddotNode reddotNode))
     {
         reddotNode.UnRegisterReddot(reddot);
         reddot.SetActive(false);
     }
     else
     {
         throw new XFrameworkException($"[Reddot System] there is no node which key is '{key}' in reddot tree,please add node to reddot tree or modify key");
     }
 }