SetActualPositionRotationToTarget() public method

Sets the actual position to target. Immediately set transform equal to the targetPosition and Rotation. This is done in instances where object may switch to attached before fully done smoothing to target.
public SetActualPositionRotationToTarget ( ) : void
return void
        public void UnHighlight()
        {
            ItemDrag dragItem = GetComponent <ItemDrag>();

            if (dragItem != null)
            {
                dragItem.SetActualPositionRotationToTarget();
            }
            SetShaderNormal();
            State = ItemState.Attached;
            Root.ItemHighlightList.Remove(this);
        }
Beispiel #2
0
 public void SetAllActualPositionToTarget()
 {
     System.Action <Item> action = delegate(Item item)
     {
         ItemDrag dragItemMod = item.GetComponent <ItemDrag>();
         if (dragItemMod != null)
         {
             dragItemMod.SetActualPositionRotationToTarget();
         }
     };
     CallDelegateAll(action);
 }