Beispiel #1
0
 private void initScoreManagers()
 {
     if (m_GameState.Player1Active)
     {
         m_Player1.AddCollisionListener(m_GameState.ScoreManagers[0].CollisionHandler);
         m_GameState.ScoreManagers[0].Position = new Vector2(m_GameState.ScoreManagers[0].Position.X + 5, m_GameState.ScoreManagers[0].Position.Y + 3);
     }
     if (m_GameState.Player2Active)
     {
         m_Player2.AddCollisionListener(m_GameState.ScoreManagers[1].CollisionHandler);
         m_GameState.ScoreManagers[1].Position = new Vector2(m_GameState.ScoreManagers[0].Position.X, m_GameState.ScoreManagers[0].Bounds.Height);
     }
 }