示例#1
0
        /// <summary>
        /// Remove and dispose AreaAura.
        /// </summary>
        public void Remove(bool cancelled)
        {
            IsActivated = false;

            m_holder.CancelAreaAura(this);
            m_holder           = null;
            m_remainingCharges = 0;             // make sure Remove will not be called again

            if (m_timer != null)
            {
                m_timer.Dispose();
            }
        }
示例#2
0
 /// <summary>Remove and dispose AreaAura.</summary>
 public void Remove(bool cancelled)
 {
     IsActivated = false;
     if (m_holder != null)
     {
         m_holder.CancelAreaAura(this);
     }
     m_holder           = null;
     m_remainingCharges = 0;
     if (m_timer == null)
     {
         return;
     }
     m_timer.Dispose();
 }