void PreviousPanel() { if (!_started) { return; } int nextIdx = _currentPanelIdx; nextIdx--; if (nextIdx < 0) { nextIdx = 0; return; } ARGUIPanel panel = ARGUIPanels[nextIdx]; if (panel != null) { OnPanelOpened(this, panel); PanelType panelType = panel.panelType; OnPanelChanged(panelType); } }
void NextPanel() { if (!_started) { return; } int nextIdx = _currentPanelIdx; nextIdx++; if (nextIdx > ARGUIPanels.Length - 1) { nextIdx = ARGUIPanels.Length - 1; return; } ARGUIPanel panel = ARGUIPanels[nextIdx]; if (panel != null) { OnPanelOpened(this, panel); PanelType panelType = panel.panelType; OnPanelChanged(panelType); } }