void OnServerConnect(object sender, EventArgs e) { client = Client.SetClient(server.client); me = new Paddle(this, new Vector2(720, 300)); you = new Paddle(this, new Vector2(80, 300)); Components.Add(me); Components.Add(you); state = PongState.Game; }
void OnClientConnect(object sender, EventArgs e) { me = new Paddle(this, new Vector2(80, 300)); you = new Paddle(this, new Vector2(720, 300)); Components.Add(me); Components.Add(you); state = PongState.Game; }