VerificationException

Hi Guys,

Suddenly i have an exception on a code that’s working since at least 8 months. and now its broken

VerificationException: Error verifying Level:startFigthAnimation (): Function pointer signature ‘bool’ doesn’t match delegate’s signature ‘’ at 0x00ba
com.artik.gf.Countdown.onUpdate (Single frameMultiplier) (at Assets/Scripts/gf/utils/Countdown.cs:53)

i dont know whats happening here :frowning:

this is the signature of mi method:

protected void startFigthAnimation() {}

And the line giving the error its just a call to a delegate.

Any hints on this?

Is the delegate’s signature identical to that method? The error message suggests to me that the delegate might be a bool, not a void.

Also ‘fight’ is misspelled, but the compiler doesn’t know that - it’s just bothering me :wink:

Hahahhaha Sorry, english isnt my native tongue xD

Yeah i’m creating a countdown:

addChild(Countdown.create(GFUtils.secondsToFrames(0.75f),startFigthAnimation,true,null,true));

The countdown creation is

public delegate void onEvent();

public static Countdown create(int frames, onEvent onTimeout, bool started = true, onEvent onTick = null, bool autoDestroy = true)
{
Countdown c = new Countdown(frames);
c.init();

c.onTimeout = onTimeout;
c.onTick = onTick;
c.autoDestroy = autoDestroy;

if (started)
c.start();

return c;
}

And on the update it checks for the frames

if (_frame <= 0.0f)
{
_frame = 0.0f;

if (onTimeout != null)
onTimeout();

// If both auto restart and destroy are enabled, restart takes precedence.
if (autoDestroy)
destroy();
}