public void IncDecTimeExt(bool val) { PlayerClass p = GlobalControl.control.GetCurrentPlayer(); if (val) { p.AddTimeExt(); } else if (p.GetTimeExt() > 0) { p.SubtractTimeExt(); } TimeExtText.text = "5 Sec Time Extensions: " + p.GetTimeExt().ToString(); }