// Switches to specified button grid protected void SwitchGrid(eGridState NewGrid) { // Disable all the buttons in the old grid foreach (Button b in m_BtnGrids[(int)m_CurrentGrid]) { b.Enabled = false; } // Enable all of the buttons in the new grid m_CurrentGrid = NewGrid; foreach (Button b in m_BtnGrids[(int)m_CurrentGrid]) { b.Enabled = true; } }
void Update() { switch (_State) { case eGridState.NoOp: break; case eGridState.Init: _State = eGridState.Diagnostic; break; case eGridState.Wait: break; case eGridState.Diagnostic: FillEmptyDiagnostic(); //FillPreconfigDiagnostic (); TryMatchDiagnostic(); _State = eGridState.Wait; break; case eGridState.EmptyScan: break; case eGridState.Calc: break; case eGridState.Dead: break; } }
void Start() { _State = eGridState.Init; }