/// <summary>
    /// Update function, is called every frame
    /// </summary>
    void Update()
    {
        if (!m_isWorking)
        {
            m_failTimer += Time.deltaTime;
            if (m_failTimer >= m_timeBeforeFailure)
            {
                Debug.Log("Level failed due to " + gameObject.name);

                m_machineManager.GetController().DisableMovement();
                m_machineManager.GetController().GetUI().ShowScores();
            }
        }
    }