void EffectuerÉvénementLocal()
        {
            if (Game.Components.Where(info => info is AffichageInfoLancer).Count() == 1) //S'il existe un AffichageInfoLancer dans Game.Components
            {
                if (ActiverLancer)
                {
                    TempsTotal = 0;
                    ActiverLancer = false;
                    infoLancer = Game.Components.ToList().Find(item => item is AffichageInfoLancer) as AffichageInfoLancer;
                    EnvoyerInfoClient();//Pour Réseau
                    ath.BoutonLancer.EstActif = false;
                }
                else if (ActiverInfo && TempsTotal >= 2.5f)
                {
                    ActiverInfo = false;
                    LancerBalle();
                    Game.Components.Remove(Game.Components.ToList().Find(item => item is AffichageInfoLancer));
                }
            }
            if (Balle.RetirerBalle)
            {
                Game.Components.Remove(Balle);
                Balle = new BallePhysique(Game, "balle", "couleur_Balle", "Shader", 1, new Vector3(0, 0, 0), new Vector3(0, 1.4f, 1.7f));

                ActiverLancer = true;
                ActiverInfo = true;
            }
            if (Balle.EstDansVerre)
            {
                EnleverVerres();
                ChangerAnimationPersonnage(TypeActionPersonnage.Boire, 1);

                Game.Components.Remove(Balle);
                Balle = new BallePhysique(Game, "balle", "couleur_Balle", "Shader", 1, new Vector3(0, 0, 0), new Vector3(0, 1.4f, 1.7f));

                ActiverLancer = true;
                ActiverInfo = true;
            }
        }
 void LancerBalle()
 {
     if (gestionEnviro.CaméraJeu.Position.Z > 0)
     {
         Balle = new BallePhysique(Game, "balle", "couleur_Balle", "Shader", 1, new Vector3(0, 0, 0), PositionIniBalle,
                                  -(4f * infoLancer.Force) / 100f - 0.5f, (float)MathHelper.ToRadians(infoLancer.InfoAngleHor),
                                  (float)MathHelper.ToRadians(infoLancer.InfoAngleVert), BoundingTable, BoundingBonhommePrincipal,
                                  ListePositionVerresAdv, RAYON_VERRE, HAUTEUR_VERRE, DimensionTable.Y, DIMENSION_TERRAIN, true, INTERVALLE_MAJ_STANDARD);
     }
     else
     {
         Balle = new BallePhysique(Game, "balle", "couleur_Balle", "Shader", 1, new Vector3(0, 0, 0), PositionIniBalleAdv,
                                  (4f * infoLancer.Force) / 100f + 0.5f, (float)MathHelper.ToRadians(infoLancer.InfoAngleHor),
                                  (float)MathHelper.ToRadians(infoLancer.InfoAngleVert), BoundingTable, BoundingBonhommeSecondaire,
                                  ListePositionVerres, RAYON_VERRE, HAUTEUR_VERRE, DimensionTable.Y, DIMENSION_TERRAIN, false, INTERVALLE_MAJ_STANDARD);
     }
     Game.Components.Insert(13, Balle);
 }
        public override void Initialize()
        {
            Ai = new AI(ModeDifficulté.Difficile);
            ActiverLancer = true;
            ActiverInfo = true;

            PositionIniBalle = new Vector3(0, 1.4f, DimensionTable.Z / 2 + 0.1f);
            PositionIniBalleAdv = new Vector3(0, 1.4f, -DimensionTable.Z / 2 - 0.1f);
            Balle = new BallePhysique(Game, "balle", "couleur_Balle", "Shader", 1, new Vector3(0, 0, 0), new Vector3(0, 1.4f, 1.7f));

            gestionEnviro = Game.Components.ToList().Find(item => item is GestionEnvironnement) as GestionEnvironnement;

            base.Initialize();
        }