示例#1
0
 public void SetShowHeadUp(bool bShow)
 {
     if (this.m_pkHeadUpRoot == null)
     {
         return;
     }
     if (this.m_pkNameSprite != null)
     {
         CharNameBillboardSprite component = this.m_pkNameSprite.GetComponent <CharNameBillboardSprite>();
         if (component != null)
         {
             component.SetShowHide(bShow);
         }
     }
     if (this.m_pkChatSprite != null)
     {
         CharChatBillboardSprite component2 = this.m_pkChatSprite.GetComponent <CharChatBillboardSprite>();
         if (component2 != null)
         {
             component2.SetShowHide(bShow);
         }
     }
     if (this.m_pkCharStatus != null)
     {
         NkUtil.SetAllChildActive(this.m_pkCharStatus, bShow);
         NkUtil.SetShowHideRenderer(this.m_pkCharStatus, bShow, true);
     }
     if (this.m_pkGuildSprite != null)
     {
         CharNameBillboardSprite component3 = this.m_pkGuildSprite.GetComponent <CharNameBillboardSprite>();
         if (component3 != null)
         {
             component3.SetShowHide(bShow);
         }
     }
     this.m_bShowHeadUp = bShow;
     if (bShow)
     {
         this.SyncBillboardRotate(true);
     }
 }