protected void RestoreBarrier() { for (var index = 0; index < m_Barriers.Count; index++) { FireBarrier barrier = m_Barriers[index]; barrier.Active = true; } Visible = true; }
public override void OnAfterDelete() { base.OnAfterDelete(); for (var index = 0; index < m_Barriers.Count; index++) { FireBarrier barrier = m_Barriers[index]; barrier.Delete(); } }
public override void OnSpeech(SpeechEventArgs e) { string mantra = e.Speech.ToLower(); if (Visible && e.Mobile.InRange(this, 2) && (mantra == "an-ord" || mantra == "anord")) { Visible = false; for (var index = 0; index < m_Barriers.Count; index++) { FireBarrier barrier = m_Barriers[index]; barrier.Active = false; } Timer.DelayCall(TimeSpan.FromMinutes(2.0), RestoreBarrier); } }