public void OnAnimationPlaying(int actionindex) { FrameIndexChangedDelegate handler = AnimationPlaying; if (handler != null) { handler(this, actionindex); } }
public void OnActionChanged(int actionindex) { if (!_handlersEnabled) { return; } FrameIndexChangedDelegate handler = ActionChanged; if (handler != null) { handler(this, actionindex); } }
public void OnFrameChanged(int actionindex) { if (!_handlersEnabled) { return; } if (!_frameChangedEventEnabled) { OnSpecialFrameChanged(actionindex); return; } FrameIndexChangedDelegate handler = FrameChanged; if (handler != null) { handler(this, actionindex); } }