/// <summary> /// Setup general HUD text and player faction HUD text. /// </summary> private void SetupHudText() { skullsSoulsText.text = "0"; sinsPrayersText.text = "Sins: 0"; sinEfficencyText.text = "100%"; //newsFlashText.text = "NOTHING HAPPENED TODAY!"; currentDateText.text = "0" + _day + "/0" + _month + "/" + _year; hellCountText.text = "Hell: 00k"; heavenCountText.text = "Heaven: 00k"; if (devil_Controller.isPlayerControlled) { // Initalizes the text values displayed on the main hud in the devil played scene. baseUnitCountText.text = ($"{devil_Controller.GetAvailableDemons()} / {devil_Controller._maxDeployableDemons}"); specialUnitCountText.text = ($"{devil_Controller.GetAvailableBanshees()} / {devil_Controller._maxDeployableBanshees}"); } else if (god_Controller.isPlayerControlled) { baseUnitCountText.text = ($"{god_Controller._availableAngels} / {god_Controller._maxDeployableAngels}"); specialUnitCountText.text = ($"{god_Controller._availableInquisitors} / {god_Controller._maxDeployableInquisitors}"); } else { throw new System.Exception("The isPlayerControlled boolean for both God and Devil controllers is set to false."); } }
public IEnumerator AvailableBansheesEqualsStartingBanshees() { Devil_Controller devil_Controller = new Devil_Controller(); yield return(null); var available = devil_Controller.GetAvailableBanshees(); var starting = devil_Controller._startingAvailableBanshees; Assert.IsTrue(available == starting); }