Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TeleArmScaleY : TeleArmScale {
- public override void Scale(float toVal, Transform ArmEnd, Transform ArmFiller, float FillerLengthOffset)
- {
- ArmEnd.localPosition = new Vector3 (ArmEnd.localPosition.x, ((toVal/1000)+ArmFiller.localPosition.y), ArmEnd.localPosition.z);
- ArmFiller.localScale = new Vector3 (ArmFiller.localScale.x,((toVal-FillerLengthOffset)/100), ArmFiller.localScale.z);
- }
- }
Add Comment
Please, Sign In to add comment