Guest User

Untitled

a guest
May 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public class TeleArmScaleY : TeleArmScale {
  2.  
  3. public override void Scale(float toVal, Transform ArmEnd, Transform ArmFiller, float FillerLengthOffset)
  4. {
  5.  
  6. ArmEnd.localPosition = new Vector3 (ArmEnd.localPosition.x, ((toVal/1000)+ArmFiller.localPosition.y), ArmEnd.localPosition.z);
  7. ArmFiller.localScale = new Vector3 (ArmFiller.localScale.x,((toVal-FillerLengthOffset)/100), ArmFiller.localScale.z);
  8. }
  9. }
Add Comment
Please, Sign In to add comment