Finalised AI scripts and added in some limitations to mana and hand size, removed auto draw at the end of each turn, as well as reducing mana top-up each round to 1

This commit is contained in:
SHOUTING_PIRATE
2025-04-28 17:25:10 +01:00
parent 11297a3078
commit ab6878fa69
56 changed files with 69508 additions and 5065 deletions

View File

@@ -14,6 +14,8 @@ public class UIController : MonoBehaviour
public TMP_Text playerManaTxt, playerHealthTxt, enemyHealthTxt;
public GameObject manaWarning;
public GameObject handWarning;
public float manaWarningTime;
public GameObject drawCardBtn, endTurnBtn;
@@ -38,6 +40,7 @@ public class UIController : MonoBehaviour
if(manaWarningCounter <= 0)
{
manaWarning.SetActive(false);
handWarning.SetActive(false);
}
}
}
@@ -63,6 +66,12 @@ public class UIController : MonoBehaviour
manaWarningCounter = manaWarningTime;
}
public void ShowHandSizeWarning()
{
handWarning.SetActive(true);
manaWarningCounter = manaWarningTime;
}
public void DrawCard()
{
DeckController.instance.DrawCardForMana();