private void ClientIsWaiting() { _clientDuration--; _eventUI.SetValue(_clientDuration.ToPercent(ClientDuration)); if (_clientDuration == 0) { ClientHasHangedUp(); } }
public void Ring() { if (IsOffTheHook) { return; } _isRigging = true; _clientDuration = ClientDuration; // todo : random _eventUI = GameManager.Instance.UIManager.AddEvent(null); ProgressBar.SetValue(_callDuration.ToPercent(CallDuration)); _eventUI.SetValue(_clientDuration.ToPercent(ClientDuration)); }