public void Clear() { isOccupied = false; idStored = -1; if (boxLockedAt != null) { boxLockedAt.SetFree(); boxLockedAt = null; } }
void BoxTouchedBeacon(PatternBox box, PatternBeacon beacon) { if (beacon == null) { box.SetFree (); } else { if(box.State == PatternBox.KState.LOCKED) box.beaconLockedAt.Clear(); beacon.Clear(); box.SetLock(beacon); beacon.Lock(box); } }
void BoxTouchedBeacon(PatternBox box, PatternBeacon beacon) { if (beacon == null) { box.SetFree(); } else { if (box.State == PatternBox.KState.LOCKED) { box.beaconLockedAt.Clear(); } beacon.Clear(); box.SetLock(beacon); beacon.Lock(box); } }