Exemplo n.º 1
0
        public static void AiShoot() //Porblem below in this method
        {
            aiAction = "SHOOT";
            sfxShoot.Play(); // Won't play when application is running but works fine when there's a breakpoint infront of it
            AiLabelsUpdate();

            if (PlayerActions.playerReload)
            {
                PlayerReload();
                WinOrLoss.LossRegular();
            }
            else if (PlayerActions.playerShoot)
            {
                PlayerShoot();
                WinOrLoss.Tie();
            }
            else if (PlayerActions.playerShotgun)
            {
                PlayerShotgun();
                WinOrLoss.WinShotgun();
            }
            else if (PlayerActions.playerBlock)
            {
                sfxBlock.Play();
                PlayerBlock();
            }
        }
Exemplo n.º 2
0
        public static void AiReload()
        {
            aiAction = "RELOAD";
            sfxReload.Play();
            AiLabelsUpdate();

            if (PlayerActions.playerReload)
            {
                PlayerReload();
            }
            else if (PlayerActions.playerShoot)
            {
                PlayerShoot();
                WinOrLoss.WinRegular();
            }
            else if (PlayerActions.playerShotgun)
            {
                PlayerShotgun();
                WinOrLoss.WinShotgun();
            }
            else if (PlayerActions.playerBlock)
            {
                PlayerBlock();
            }
        }
Exemplo n.º 3
0
        public static void AiShotgun()
        {
            aiAction = "SHOTGUN!";
            sfxShotgun.Play();
            AiLabelsUpdate();

            if (PlayerActions.playerShotgun)
            {
                PlayerShotgun();
                WinOrLoss.TieShotgun();
            }
            else
            {
                WinOrLoss.LossShotgun();
            }
        }
Exemplo n.º 4
0
        public static void AiBlock()
        {
            aiAction = "BLOCK";
            AiLabelsUpdate();

            if (PlayerActions.playerReload)
            {
                PlayerReload();
            }
            else if (PlayerActions.playerShoot)
            {
                PlayerShoot();
                sfxBlock.Play();
            }
            else if (PlayerActions.playerShotgun)
            {
                PlayerShotgun();
                WinOrLoss.WinShotgun();
            }
            else if (PlayerActions.playerBlock)
            {
                PlayerBlock();
            }
        }