protected override void OnTick() { m_Moongate.Delete(); m_HagCouldron.Gate = null; m_HagCouldron.Timer = null; Stop(); }
public void KillGate( Moongate gate ) { if ( gate != null && !gate.Deleted ) { Effects.SendLocationParticles( EffectItem.Create( gate.Location, gate.Map, EffectItem.DefaultDuration ), 0x376A, 9, 20, 5042 ); Effects.PlaySound( gate.Location, gate.Map, 0x201 ); gate.Delete(); } }
public void KillGate(Moongate gate) { if (gate != null && !gate.Deleted) { Effects.SendLocationParticles(EffectItem.Create(gate.Location, gate.Map, EffectItem.DefaultDuration), 0x376A, 9, 20, 5042); Effects.PlaySound(gate.Location, gate.Map, 0x201); gate.Delete(); } }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); if ( version == 1 ) { m_Gate = reader.ReadItem() as Moongate; if( m_Gate != null ) m_Gate.Delete(); } Timer.DelayCall( TimeSpan.FromSeconds( 5 ), new TimerCallback( CastGate ) ); }