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(); } }
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(); } }
public static void AiShotgun() { aiAction = "SHOTGUN!"; sfxShotgun.Play(); AiLabelsUpdate(); if (PlayerActions.playerShotgun) { PlayerShotgun(); WinOrLoss.TieShotgun(); } else { WinOrLoss.LossShotgun(); } }
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(); } }