void resetBar() { if (GameController.Instance == null) { return; } FillBar.fillAmount = 0.0f; FullBar.fillAmount = 0.0f; if (TypeOfHUD == HUDType.Player) { // Debug.Log(" HUDType.Player " + GameController.Instance.getPlayerRole().ToString()); Info.text = TypeOfHUD.ToString() + " (" + GameController.Instance.getPlayerRole().ToString() + ")"; } else if (TypeOfHUD == HUDType.Enemy) { // Debug.Log(" HUDType.Enemy " + GameController.Instance.getEnemyRole().ToString()); Info.text = TypeOfHUD.ToString() + " (" + GameController.Instance.getEnemyRole().ToString() + ")"; } }