//////// FOOTER public void SetProgressBarValues(int currentValue, int maxValue) { footerGroup.gameObject.SetActive(true); int remainingValue = (maxValue - currentValue); progressBar.SetValues(remainingValue, maxValue); progressText.Text = string.Format("oxygen level: {0}", remainingValue.ToString()); }