Esempio n. 1
0
 private void AddOutlineDoor(Maze.Door door, List <Maze.Door> outlineDoors)
 {
     if (!door.GetLockState() || door.IsFixed)
     {
         return;
     }
     if (!outlineDoors.Contains(door))
     {
         outlineDoors.Add(door);
     }
     else
     {
         outlineDoors.Remove(door);
     }
 }
Esempio n. 2
0
 private bool TwoDoorAreEqual(Maze.Door doorSource, Maze.Door doorTarget)
 {
     return(doorSource.GetLockState() && !doorSource.IsFixed && object.Equals((object)doorSource, (object)doorTarget));
 }