static Rect GetRect(int p1,float p2,RX_SEAT_POSITION pos)
{
Rect rect = new Rect ();
if (pos == RX_SEAT_POSITION.RX_SEAT_LEFT || pos == RX_SEAT_POSITION.RX_SEAT_RIGHT) {
rect.y = (float)p1;
rect.x = (float)p2;
} else {
rect.x = (float)p1;
rect.y = (float)p2;
}
rect.width = 42f;
rect.heitht = 60f;
return rect;
}