Example #1
0
 public void pick()
 {
     heldPickable = getFirstPickableObject();
     if (heldPickable)
     {
         if (heldPickable.objectLayer == PickableObject.LayerObject.Back)
         {
             levController.turnToBackground();
         }
         else if (heldPickable.objectLayer == PickableObject.LayerObject.Front)
         {
             levController.turnToForeground();
         }
         levController.OnCustomAnimationFinished += handleOnPickFinished;
         levController.playCustomAnimation(heldPickable.pickAnimation);
         levController.stopMoving();
         heldPickable.OnStartLocked();
         isHoldingPickable = true;
     }
 }