private void CurrentTransitionOnTransitionEnded(SubMapTransition transition, SubMap @from, SubMapBinder to, bool success) { CurrentTransition.TransitionEnded -= CurrentTransitionOnTransitionEnded; if (!success) { Index = -1; } else { Index++; } OnTransitionEnded(transition, success); }
private void CurrentTransitionOnTransitionEnded(SubMapTransition transition, SubMap @from, SubMapBinder to, bool success) { CurrentTransition.TransitionEnded -= CurrentTransitionOnTransitionEnded; if (!success) Index = -1; else { Index++; } OnTransitionEnded(transition, success); }