private void DestructionLogic() { //if we do not want to destroy return if (!m_destroy) { return; } if (m_deathTimer.Tick(Time.deltaTime)) { Destroy(gameObject); } //if the timer is currently still running else { var timerPercentage = m_deathTimer.GetTimerPercentage(true); if (transform.localScale.x < m_minimumScale) { return; } transform.localScale = m_initialScale * timerPercentage; } }