public static void Value()
{
float from1 = 0.0f;
float to = 1.0f;
float time = 3.0f;
Hashtable options = new Hashtable();
LeanTween.value(updateNewValue, from1, to, time, options);
}
private static void updateNewValue(float hi)
{
print(hi);
}
Hi guys, i got a problem, hope you guys can help me out. I use the above code and i got these 2 error? Whats wrong?
The best overloaded method match for `LeanTween.value(Boo.Lang.ICallable, float, float, float, System.Collections.Hashtable)’ has some invalid arguments
Argument #1' cannot convert method group’ expression to type `Boo.Lang.ICallable’
Hi Tongie, I could be wrong, but I think it may be because you are using a static method, I am not sure if that is possible with a callback… you may try something more like:
I was struggling with this function ( LeanTween.value ) and documentation is not quite useful. so I find out the best way to use it, is to read comments in the function implementation. there is usually an example within the function in the comment.