Code (csharp): 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? 1) The best overloaded method match for `LeanTween.value(Boo.Lang.ICallable, float, float, float, System.Collections.Hashtable)' has some invalid arguments 2) 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: ClassName.updateNewValue to pass as a value instead...
Yup its was the static that prevent it from working and convert updateNewValue to "updateNewValue". Thanks alot...!
hi, dentedpixel i'm trying to use LeanTween.value with the same example , int from1 = 0.0f; int to = 1.0f; float time = 3.0f; LeanTween.value(currentSCore, from1, to, time ); what's wrong ? i don't get it
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.