internal virtual bool HaveTargetAttack()
 {
     if (m_TargetAttack == null)
     {
         return(false);
     }
     return(m_TargetAttack.GetActive() &&
            m_TargetAttack.GetTeam() != this.GetTeam() &&
            m_TargetAttack.GetCurrentBlock() == this.GetCurrentBlock());
 }
Exemple #2
0
 public void RegisterObject(CObjectController value)
 {
     if (value == null || value.GetActive() == false)
     {
         return;
     }
     if (m_SequenceList.Contain(value))
     {
         return;
     }
     m_SequenceList.Enqueue(value);
     m_UIManager.RegisterUIAvatar(value);
 }
 internal virtual bool HaveTargetAlly()
 {
     if (m_CurrentBlock == null)
     {
         return(false);
     }
     if (m_TargetAlly == null)
     {
         return(false);
     }
     return(m_TargetAlly != null &&
            m_TargetAlly.GetActive() &&
            m_TargetAlly.GetTeam() == this.GetTeam() &&
            m_TargetAlly.GetCurrentBlock() == this.GetCurrentBlock());
 }