I am using AniMate in C#, my question is propertie Callback … not work.
public delegate void fDelegate();
public fDelegate test;
void Start() {
test = functionTest();
Hashtable properties = new Hashtable();
properties.Add("easing", typeof(LinearEasing));
properties.Add("callback", test);
Ani.Mate.To(guiTexture, duration, properties);
}
void functionTest() {
Debug.Log("finish");
}
i got the same problem!! try to use some timer, or something like that
The delegate or better the function from which you create it is incorrect.
There is no func( void ) delegate, only a func( System.Object ) one.
I guess you are using the Boo version not the C# version from the iPhone targeted GUIManager so you won’t be notified right away when types go wrong.
Also, you seem to be using the callback by http://www.unifycommunity.com/wiki/index.php?title=AniMate (and the sources of the boo as well as the C# version), because they won’t be called “at end”, they are used to do the animation so a callback must return float and accept a float or won’t do its job