/// <summary> /// /// </summary> private void Start() { _model = GetComponent <StackModelManager>(); _analyser = GetComponent <StackAnalyser>(); _properties = new MaterialPropertyBlock(); ResetDisplay(); }
/// <summary> /// /// </summary> private void Start() { _model = GetComponent <StackModel>(); _analyser = GetComponent <StackAnalyser>(); _dna = _model.Stack.DNA; /* * instructionSetArray = new GOLInstructionSet[5]; * * instructionSetArray[0] = _instSetMO1; * instructionSetArray[1] = _instSetMO2; * instructionSetArray[2] = _instSetMO3; * instructionSetArray[3] = _instSetMO5; * instructionSetArray[4] = _instSetMO8; */ }
/// <summary> /// /// </summary> private void Awake() { // create model using the rule attached to this component _rule = GetComponent <ICARule2D>(); _model = new CAModel2D(_rule, _stack.RowCount, _stack.ColumnCount); // initialize model _initializer.Initialize(_model.CurrentState); // update layer / cells in the stack to the seed image _currentLayer = 1; UpdateStack(); // _analyser = GetComponent <StackAnalyser>(); }
/// <summary> /// /// </summary> private void Start() { if (_initialized == false) { // create model _model = new CAModel2D(GetComponent <ICARule2D>(), _stack.RowCount, _stack.ColumnCount); // initialize model _initializer.Initialize(_model.CurrentState); // update layer / cells in the stack to the seed image _currentLayer = 1; UpdateStack(); // _analyser = GetComponent <StackAnalyser>(); _initialized = true; } }
/// <summary> /// /// </summary> private void Start() { //access to the stack model + analyser as components of the same gameObject "this" script is attached to _modelManager = GetComponent <StackModelManager>(); _analyser = GetComponent <StackAnalyser>(); }
/// <summary> /// /// </summary> private void Start() { _model = GetComponent <StackModelManager>(); _analyser = GetComponent <StackAnalyser>(); _dna = _model.Stack.DNA; }