When I use :
LeanTween.move(GameObject, Vector3, float).SetOnUpdate(actionMethod);
void actionMethod(float value) {
Debug.Log(value);
}
The value passed is always zero. I understand that SetOnUpdateVector3(actionMethod) passes the current tweening Vector3 position but I need the current tween float value for some logic.
It seems like LeanTween doesn’t allow to get the current value of a tween through its LTDescr.
What is the preferred way of getting the current tween value as a float without creating a second tween LeanTween.value(…) to run in parallel of each LeanTween.move(…) ?