Example #1
0
 /// <summary>
 /// 检查是否有额外的特效需要显示
 /// </summary>
 private void UpdateExtraEffect()
 {
     if (m_bShow == false || serverId == -1)
     {
         HideEffect();
     }
     else
     {
         CObject_PlayerNPC npc = CObjectManager.Instance.FindServerObject(serverId) as CObject_PlayerNPC;
         if (npc != null)
         {
             if (npc.GetExtraEffectName() == "")
             {
                 HideEffect();
             }
             else
             {
                 ShowEffect(npc.GetExtraEffectName(), npc.GetEffectHeight());
             }
         }
     }
 }