private void MirrorEnvironment(float[,] toMirror) { width = toMirror.GetLength(0); height = toMirror.GetLength(1); conways = new ConwaysAutomata(toMirror); GetComponent <CellTorus>().SetPlaneSize(width, height); GetComponent <CellTorus>().automata = conways; }
void Start() { conways = new ConwaysAutomata(width, height); conways[12, 10] = 1; conways[12, 11] = 1; conways[12, 12] = 1; conways[11, 12] = 1; conways[10, 11] = 1; conways[-1, 0] = 1; conways[0, 0] = 1; conways[1, 0] = 1; GetComponent <CellTorus>().automata = conways; GetComponent <CellTorus>().SetPlaneSize(width, height); }