public void ToggleLock()
 {
     //toggleMemory = true;
     if (!m_isLocked)
     {
         m_targetPosition = m_closedPosition;
         if (m_lockedTexture)
         {
             m_doorMaterial.SetTexture("_EmissionMap", m_lockedTexture);
             m_systemInstance.ChangeLights(new Color(1f, 42f / 255f, 6f / 255f, 1f));
         }
         //Debug.Log("Doors are locking now");
     }
     else if (m_unlockedTexture)
     {
         m_doorMaterial.SetTexture("_EmissionMap", m_unlockedTexture);
         m_systemInstance.ChangeLights(new Color(6f / 255f, 152f / 255f, 1f, 1f));
     }
     m_targetReached = false;
     m_isLocked      = !m_isLocked;
     //toggleMemory = false;
 }