private void UpdateUI() { hpController.SetPlayerHP(playerHealth); hpController.SetBossHP(bossHealth); /* * var str = "Player Health: "; * str += new string('▓', Mathf.RoundToInt(playerHealth / maxPlayerHealth * 10)); * str += "\nBoss Health: "; * str += new string('▓', Mathf.RoundToInt(bossHealth / maxBossHealth * 10)); * str += "\n"; * if (sols.Count != 0) { * str += "To Hurt Boss: "; * switch (sols.Peek()) { * case PlayerAction.AttackUp: * str += "↑"; * break; * case PlayerAction.AttackDown: * str += "↓"; * break; * case PlayerAction.AttackLeft: * str += "←"; * break; * case PlayerAction.AttackRight: * str += "→"; * break; * } * str += "\n"; * } * healthStatusText.text = str; */ }