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 BlockGates() { Log.Info("woah1"); Cassie.Message("P L 1 Protocol has been activated . all gates have been lockdown for 2 minutes", false, false); Log.Info("woah2"); Log.Info(GateA == null); GateA.SetStateWithSound(false); Log.Info("woah3"); GateB.SetStateWithSound(false); Log.Info("woah4"); GateA.Networklocked = true; Log.Info("woah5"); GateB.Networklocked = true; Log.Info("woah6"); Timing.CallDelayed(120f, UnBlockGates); }