Esempio n. 1
0
 private IEnumerator FireOffShot(GunCrew gCrew, ShotType sType)
 {
     if (!gCrew.IsReady)
     {
         gCrew.SignalReady();
         yield return(new WaitForSeconds(gCrew.ReloadTime));
     }
     this.FireShot(gCrew, sType);
 }
 void FireShot( GunCrew gCrew, ShotType sType )
 {
     gCrew.FireShot( sType );
     this.RoundShotsRemaining--;
     this.OnFiredRoundShot( this );
 }
Esempio n. 3
0
 void FireShot(GunCrew gCrew, ShotType sType)
 {
     gCrew.FireShot(sType);
     this.RoundShotsRemaining--;
     this.OnFiredRoundShot(this);
 }
 private IEnumerator FireOffShot( GunCrew gCrew, ShotType sType )
 {
     if ( !gCrew.IsReady ) {
         gCrew.SignalReady();
         yield return new WaitForSeconds( gCrew.ReloadTime );
     }
     this.FireShot( gCrew, sType );
 }