public override void postUpdate()
{
if(onLeft) {
if(x < 5) x = 5;
if(((PlayState)G.state).state == State.GetReady) {
if(x > START_BOX_LEFT) x = START_BOX_LEFT;
} else if(x > PlayState.ARENA_WIDTH / 2 - width) {
x = PlayState.ARENA_WIDTH / 2 - width;
}
} else {
if(x > PlayState.ARENA_WIDTH - width - 3) x = PlayState.ARENA_WIDTH - width - 3;
if(((PlayState)G.state).state == State.GetReady) {
if(x < START_BOX_RIGHT) x = START_BOX_RIGHT;
} else if(x < PlayState.ARENA_WIDTH / 2) {
x = PlayState.ARENA_WIDTH / 2;
}
}
if(y < 0) y = 0;
if(y > PlayState.ARENA_HEIGHT - height) y = PlayState.ARENA_HEIGHT - height;
shadow.y = y + shadow.Y_OFFSET;
shadow.x = x + shadow.X_OFFSET;
z = shadow.y;
if(team == Team.Right) {
retical.X = x + 5;
retical.Y = y + 24;
} else {
retical.X = x + 15;
retical.Y = y + 24;
}
if(Dead) retical.visible = false;
retical.charge = (charge - minCharge) / (maxCharge - minCharge);
base.postUpdate();
}