public void Damage() { m_AudioSource.PlayOneShot(m_HurtSound); m_StrikeCount++; m_StrikeCountView.UpdateCount(m_StrikeCount); if (m_StrikeCount >= 3) { m_Input.StopInput(); FindObjectOfType <GameController>().IsGameOver = true; } }
public void OnTurretDestroyed() { m_CurrentTurrets--; m_DestroyedTurretCount++; m_DestroyedTurretCountView.UpdateCount(m_DestroyedTurretCount); }