Ejemplo n.º 1
0
        public void RemoveActor(Dictionary <Direction, Trafficlight> allLights)
        {
            if (allLights[Direction.North].CarGo == true)
            {
                nbPlate.Remove();
                nbPedButton.Remove();
            }

            if (allLights[Direction.South].CarGo == true)
            {
                sbPlate.Remove();
                sbPedButton.Remove();
            }

            if (allLights[Direction.East].CarGo == true && allLights[Direction.West].CarGo == true)
            {
                ebPlate.Remove();
                ebPedButton.Remove();
            }

            if (allLights[Direction.West].CarGo == true)
            {
                wbPlate.Remove();
                wbPedButton.Remove();
            }
        }