private void UpdateHealt(GameObject player) { if (PlayerScoreHandler.score >= cost) { PlayerScoreHandler.score -= cost; PlayerLife pl = player.GetComponent <PlayerLife>(); hudHandler.lifePanel.SetActive(true); pl.RestoreHealt(); ValidSound(); isEnableTo = false; } else { NoValidSound(); } }