Пример #1
0
        // 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;
            }
        }
Пример #2
0
    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;
        }
    }
Пример #3
0
        // 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;
            }
        }
Пример #4
0
 void Start()
 {
     _State = eGridState.Init;
 }