Пример #1
0
    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);

        }
    }
Пример #2
0
 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);
     }
 }
Пример #3
0
 public void SetLock(PatternBeacon beacon)
 {
     meState        = KState.LOCKED;
     beaconLockedAt = beacon;
     Move(this.transform.position, beacon.transform.position, .5f);
 }
Пример #4
0
 public void SetLock(PatternBeacon beacon)
 {
     meState = KState.LOCKED;
     beaconLockedAt = beacon;
     Move (this.transform.position, beacon.transform.position, .5f);
 }