Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        private void HandleKeyPress()
        {
            // Reset model
            if (Input.GetKeyDown(KeyCode.Space))
            {
                _model.ResetModel();
            }

            // Update display mode
            if (Input.GetKeyDown(KeyCode.Alpha1))
            {
                _display.DisplayMode = CellDisplayMode.Age;
            }
            else if (Input.GetKeyDown(KeyCode.Alpha2))
            {
                _display.DisplayMode = CellDisplayMode.LayerDensity;
            }
            else if (Input.GetKeyDown(KeyCode.Alpha3))
            {
                _display.DisplayMode = CellDisplayMode.NeighborDensity;
            }
        }
 /// <summary>
 ///
 /// </summary>
 private void HandleKeyPress()
 {
     // Reset model
     _model.ResetModel();
 }