/// <summary> /// Changes the panel mode to the previous one based on the order in the enum defintion. /// </summary> public void ChangePanelModePrevious() { if (m_CurrentPanelmode == 0) { m_CurrentPanelmode = (Panelmode)(Enum.GetNames(typeof(Panelmode)).Length - 1); } else { m_CurrentPanelmode--; } }
/// <summary> /// Resets current panel mode to MotorForce. /// </summary> public void ResetPanelMode() { m_CurrentPanelmode = Panelmode.Motor_Force; }
/// <summary> /// Changes the panel mode to the next one based on the order in the enum defintion. /// </summary> public void ChangePanelModeNext() { m_CurrentPanelmode = (Panelmode)((int)(m_CurrentPanelmode + 1) % Enum.GetNames(typeof(Panelmode)).Length); }