Exemple #1
0
 private void ClientIsWaiting()
 {
     _clientDuration--;
     _eventUI.SetValue(_clientDuration.ToPercent(ClientDuration));
     if (_clientDuration == 0)
     {
         ClientHasHangedUp();
     }
 }
Exemple #2
0
 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));
 }