spine-csharp changed how AnimationState events are added. There are no more event objects, it is cleaner. Add listener methods like this:
state.Start += Start;
state.End += End;
state.Complete += Complete;
state.Event += Event;
Where the methods are defined like this:
public void Start (AnimationState state, int trackIndex) {
Console.WriteLine(trackIndex + " " + state.GetCurrent(trackIndex) + ": start");
}
public void End (AnimationState state, int trackIndex) {
Console.WriteLine(trackIndex + " " + state.GetCurrent(trackIndex) + ": end");
}
public void Complete (AnimationState state, int trackIndex, int loopCount) {
Console.WriteLine(trackIndex + " " + state.GetCurrent(trackIndex) + ": complete " + loopCount);
}
public void Event (AnimationState state, int trackIndex, Event e) {
Console.WriteLine(trackIndex + " " + state.GetCurrent(trackIndex) + ": event " + e);
}
You can choose your own method names, as long as the take the right arguments.