void onHurtFallCallback(int frameIndex) { int teamDirection = onLeft ? 1 : -1; if(frameIndex > 0) { x += fallOffsets[frameIndex].X * teamDirection; y += fallOffsets[frameIndex].Y * teamDirection; } }