From 9884b4d082f0174185b0c9471a7d1ff9a0571ee6 Mon Sep 17 00:00:00 2001 From: NeuralDip Date: Mon, 29 Jan 2018 10:44:56 +0200 Subject: [PATCH] Check if the player has missiles --- Assets/Scripts/PlayGame.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/PlayGame.cs b/Assets/Scripts/PlayGame.cs index 91b3347..1ab0e39 100644 --- a/Assets/Scripts/PlayGame.cs +++ b/Assets/Scripts/PlayGame.cs @@ -23,7 +23,7 @@ public void IBeenClicked(string FromPlayer, string ToPlayer, int Index) { int EnemyIndex = MyGlobalController.PlayersNames.IndexOf(ToPlayer); if (MyGlobalController.PlayersShips[EnemyIndex][Index] == GridElement.GridElementState.Invalid) return; - if (true)//HasLoadedMissile) + if (HasLoadedMissile) { HasLoadedMissile = false; MyGlobalController.ConsoleMessage.text = "You Have No Missile Loaded. Type 'reload' to Load One Now.";