Exemplo n.º 1
0
 private void DartOnJuiceSucked(object sender, JuiceSuckedEventArgs juiceSuckedEventArgs)
 {
     if (_enableDartJuiceSuckedVibration && !_playerVibrator.IsVibrating)
     {
         _playerVibrator.Vibrate(_dartJuiceSuckedVibrationSettings);
     }
 }
Exemplo n.º 2
0
    protected virtual void OnJuiceSucked(JuiceSuckedEventArgs e)
    {
        EventHandler <JuiceSuckedEventArgs> handler = JuiceSucked;

        if (handler != null)
        {
            handler(this, e);
        }
    }
Exemplo n.º 3
0
 private void DartOnJuiceSucked(object sender, JuiceSuckedEventArgs juiceSuckedEventArgs)
 {
     _hpScript.CurrentHp += juiceSuckedEventArgs.HpSucked;
     if (_delayManager.OtherReady)
     {
         m_SappingAudioSource = PlayNewSound(m_SappingAudioSource, Transfering);
         //SoundManager.PlaySFX(Transfering);
         _delayManager.AddOtherDelay(Settings.m_transferSoundDelay);
     }
 }
Exemplo n.º 4
0
 private void DartOnJuiceSucked(object sender, JuiceSuckedEventArgs juiceSuckedEventArgs)
 {
     _hpScript.CurrentHp += juiceSuckedEventArgs.HpSucked;
     if (_delayManager.OtherReady)
     {
         m_SappingAudioSource = PlayNewSound(m_SappingAudioSource, Transfering);
         //SoundManager.PlaySFX(Transfering);
         _delayManager.AddOtherDelay(Settings.m_transferSoundDelay);
     }
 }
Exemplo n.º 5
0
 private void Dart_JuiceSucked(object sender, JuiceSuckedEventArgs e)
 {
     _hpScript.CurrentHp += e.HpSucked;
 }
Exemplo n.º 6
0
 protected virtual void OnJuiceSucked(JuiceSuckedEventArgs e)
 {
     EventHandler<JuiceSuckedEventArgs> handler = JuiceSucked;
     if (handler != null) handler(this, e);
 }
Exemplo n.º 7
0
 private void Dart_JuiceSucked(object sender, JuiceSuckedEventArgs e)
 {
     _hpScript.CurrentHp += e.HpSucked;
 }