Beispiel #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);
    }
Beispiel #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);
     }
 }
Beispiel #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;
     }
 }
Beispiel #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;
     }
 }
Beispiel #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);
 }