public void BlockCheckpointsAndGates() { Cassie.Message("P L 2 Protocol has been activated . all gates and checkpoints have been lockdown for 2 minutes", false, false); GateA.SetStateWithSound(false); GateB.SetStateWithSound(false); GateA.Networklocked = true; GateB.Networklocked = true; if (!LCZDecontWasActivated) { CheckpointA.SetStateWithSound(false); CheckpointB.SetStateWithSound(false); CheckpointA.Networklocked = true; CheckpointB.Networklocked = true; } else { Cassie.Message("attention . checkpoints a and b can not be locked cause of light containment zone decontamination", false, false); } if (!HCZDecontWasActivated) { CheckpointEZ.SetStateWithSound(false); CheckpointEZ.Networklocked = true; } else { Cassie.Message("attention . entrance zone checkpoint can not be locked cause of heavy containment zone decontamination", false, false); } Timing.CallDelayed(120f, UnBlockCheckpoints); Timing.CallDelayed(120f, UnBlockGates); }
public void LCZDecont() { LCZDecontOnline = true; Cassie.Message("P B 2 Protocol has been activated . activating light zone decontamination . 4 minutes remaining", false, false); LCZDecontWasActivated = true; Cassie.DelayedMessage("attention . 3 minutes remaining to light zone decontamination . allremaining", 60f, false, false); Cassie.DelayedMessage("attention . 2 minutes remaining to light zone decontamination . allremaining", 120f, false, false); Cassie.DelayedMessage("attention . 1 minute remaining to light zone decontamination . checkpoints a and b have been opend . allremaining", 180f, false, false); Timing.CallDelayed(180f, () => { CheckpointA.SetStateWithSound(true); CheckpointB.SetStateWithSound(true); CheckpointA.Networklocked = true; CheckpointB.Networklocked = true; }); Cassie.DelayedMessage("attention . light zone decontamination started . all checkpoints have been closed . allremaining", 240f, false, false); Timing.CallDelayed(240f, () => { CheckpointA.SetStateWithSound(false); CheckpointB.SetStateWithSound(false); LCZDecontOnline = false; }); }