Example #1
0
    private void OnDartFired(object sender, DartFiredEventArgs dartFiredEventArgs)
    {
        _currentDartShot                = dartFiredEventArgs.Dart;
        _currentDartShot.JuiceSucked   += DartOnJuiceSucked;
        _currentDartShot.DartDestroyed += DartOnDartDestroyed;
//        Debug.Log("OnDartFired");
        m_FireSound = SoundManager.PlaySFX(Fire);
    }
Example #2
0
 private void ComponentToListenOnDartFired(object sender, DartFiredEventArgs dartFiredEventArgs)
 {
     dartFiredEventArgs.Dart.DartCollision += DartOnDartCollision;
     dartFiredEventArgs.Dart.JuiceSucked   += DartOnJuiceSucked;
     dartFiredEventArgs.Dart.DartDestroyed += DartOnDartDestroyed;
     if (_enableFireVibration)
     {
         _playerVibrator.Vibrate(_fireVibrationSettings);
     }
 }
Example #3
0
 protected virtual void OnDartFired(DartFiredEventArgs e)
 {
     try
     {
         EventHandler <DartFiredEventArgs> handler = DartFired;
         if (handler != null)
         {
             handler(this, e);
         }
     }
     catch (Exception ex)
     {
         ex.Log();
         throw;
     }
 }
Example #4
0
 protected virtual void OnDartFired(DartFiredEventArgs e)
 {
     try
     {
         EventHandler<DartFiredEventArgs> handler = DartFired;
         if (handler != null) handler(this, e);
     }
     catch (Exception ex)
     {
         ex.Log();
         throw;
     }
 }
Example #5
0
 private void OnDartFired(object sender, DartFiredEventArgs dartFiredEventArgs)
 {
     _currentDartShot = dartFiredEventArgs.Dart;
     _currentDartShot.JuiceSucked += DartOnJuiceSucked;
     _currentDartShot.DartDestroyed += DartOnDartDestroyed;
     //        Debug.Log("OnDartFired");
     m_FireSound = SoundManager.PlaySFX(Fire);
 }