internal static GoTween animateBounce(this Transform transform, float time, float dx, float dy, float dz, int bounceCount = 1) { GoTween tween = transform.localPositionTo(time, new Vector3(dx, dy, dz), true); tween.loopType = GoLoopType.PingPong; tween.loops(bounceCount * 2); return(tween); }