public static LTDescr Biezer(GameObject obj, Vector3 p0, Vector3 p1, Vector3 p2, float time) { LTDescr tween = LeanTween.value(obj, 0, 1, time); tween.setOnUpdate(t => { Vector3 p = XMath.SampleBezierCurve(p0, p1, p2, t); obj.transform.position = p; }); return(tween); }