public onThrowCallback ( int frameIndex ) : void | ||
frameIndex | int | |
Résultat | void |
void onThrowCallback(int frameIndex)
{
int teamDirection = onLeft ? 1 : -1;
if(frameIndex > 0) {
x += throwOffsets[(int)heading][frameIndex - 1].X * teamDirection;
y += throwOffsets[(int)heading][frameIndex - 1].Y * teamDirection;
}
}