I have an old project I’m finally getting around to updating (translating from Javascript, 2018.2.2), and it uses ZestKit for animations. I long ago quit using ZestKit, and I don’t remember much about it. There are a LOT of animations, and I really don’t want to replace all that code. And I don’t see any reason why ZestKit should not still work.
The problem is that every setCompletionHandler gives me the error: parameters do not match delegate.
For example:
tCamera.transform.ZKpositionTo(tPos, totalTime)
.setEaseType(EaseType.SineInOut)
.setCompletionHandler(UpdateCrosshair)
.start();
...
public void UpdateCrosshair() {}
These are all functions that do not have any parameters, and do not return any values. Any ideas as to why I’m getting these errors? Do I need to replace ZestKit?
// tween localScale independant of Time.timeScale with a 2 second delay before starting the tween
// and get notified when the tween has finished specifying the easing equation to use
transform.ZKlocalScaleTo( new Vector3( 10f, 10f, 10f ), 0.5f )
.setDelay( 2f )
.setIsTimeScaleIndependent()
.setCompletionHandler( myCompletionHandlerFunction )
.setEaseType( EaseType.ElasticOut )
.start();