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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user