예제 #1
0
 private void PitchAsHealthDrops()
 {
     if (tankHealth.HealthAsPercentage() == 0)
     {
         currentPitchRange = m_OriginalPitchRange + 10f;
         return;
     }
     currentHealthPercentage = 1 / Mathf.Max(tankHealth.HealthAsPercentage(), 0.01f);
     currentPitchRange       = m_OriginalPitchRange + 0.1f * currentHealthPercentage;
 }