void OnGUI() { if (GUI.Button(new Rect(0, 0, 400, 80), string.Format("add {0}", _nextRandomizedKey))) { if (_manager.TrackCooldown(_nextRandomizedKey, PRESET_ITEMS[_nextRandomizedKey], CooldownCompleteHint)) { _trackingKeys.Add(_nextRandomizedKey); } _nextRandomizedKey = GetRandomKey(); } for (int i = 0; i < _trackingKeys.Count; i++) { GUI.Label(new Rect(0, 200 + 40 * i, 400, 90), string.Format("{0} : {1:f1}" , _trackingKeys[i] , _manager.GetCooldownTimeLeft(_trackingKeys[i]))); } }