public void ContinueAutoPositioning() { m_CurrentStepIgnoreAutomaticAdjusting = false; m_CurrentSubStep++; if (m_CurrentSubStep >= 0 && m_CurrentSubStep < m_PositionalSequenceList[m_CurrentStep].m_PositionalData.Count) { m_CurrentStepIgnoreAutomaticAdjusting = m_PositionalSequenceList[m_CurrentStep].m_PositionalData[m_CurrentSubStep].m_IgnoreAutomaticAdjusting; m_PositionalSequenceList[m_CurrentStep].m_PositionalData[m_CurrentSubStep].m_Parent = this; m_PositionalSequenceList[m_CurrentStep].m_PositionalData[m_CurrentSubStep].m_Component.SendMessage("ApplyAutoPositionComponentData", m_PositionalSequenceList[m_CurrentStep].m_PositionalData[m_CurrentSubStep]); } else { m_CurrentSubStep = -1; if (m_Reverse) { m_CurrentStep--; } else { m_CurrentStep++; } if (m_CurrentStep >= 0 && m_CurrentStep < m_PositionalSequenceList.Count) { ContinueAutoPositioning(); } else { m_CurrentStep = -1; if (m_NextPositionalData) { m_NextPositionalData.InitiateAutoPositioning(); } } } }
public int StartAutoPositioning() { m_AutoPositioningNumber = -1; for (int i = 0; i < m_AutoPositioningData.Count; i++) { if (m_AutoPositioningData[i].name == "AutoPositionData_" + ControlsConversion.Instance.m_AutoPositionInput) { m_AutoPositioningNumber = i; } } if (m_AutoPositioningNumber == -1) { return(-1); } m_CurrentAutoPositioning = m_AutoPositioningData[m_AutoPositioningNumber]; m_CurrentAutoPositioning.InitiateAutoPositioning(); return(1); }