public static void AddPlayer(Player p) { Players.Add(p); Objects.Add(p); p.AddToPanel(RootPanel); }
void Init() { Game.RootPanel = LayoutRoot; Game.AddPlayer(mPlayer = new Player() { Name = Environment.UserName }); Game.AddBall(mBall = new Ball()); mCursorTracker.IsEnabled = true; }