Exemple #1
0
 public bool IsEqualsTo(IMyDoor anotherDoor) => door.GetId() == anotherDoor.GetId();
Exemple #2
0
 public Door(IMyDoor door, int timeToClose = 3)
 {
     this.door         = door;
     this.timeToClose  = timeToClose;
     howLongDoorIsOpen = 0;
 }