Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- /// <summary>
- /// Changes the offset for the PsuedoBody2D by the squish scale.
- /// </summary>
- public class SquishToPsuedoBody2DAdapter : MonoBehaviour
- {
- public PsuedoBody2D PsuedoBody;
- public Scaler Scale;
- void Update()
- {
- PsuedoBody.PositionOffsetScale = Scale.CurrentScale;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment