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); } }
public void SetLock(PatternBeacon beacon) { meState = KState.LOCKED; beaconLockedAt = beacon; Move(this.transform.position, beacon.transform.position, .5f); }
public void SetLock(PatternBeacon beacon) { meState = KState.LOCKED; beaconLockedAt = beacon; Move (this.transform.position, beacon.transform.position, .5f); }