void SetNeighbors(TessCube[] cubes) { int[] neighbors = TessRef.Instance.neighborMap [id]; up = cubes [neighbors [TessRef.UP]]; forward = cubes [neighbors [TessRef.FORWARD]]; right = cubes [neighbors [TessRef.RIGHT]]; back = cubes [neighbors [TessRef.BACK]]; left = cubes [neighbors [TessRef.LEFT]]; down = cubes [neighbors [TessRef.DOWN]]; opposite = cubes [neighbors [TessRef.OPPOSITE]]; }
public override void OnClickCube(TessCube cube) { isUnfolded = !isUnfolded; ToggleCubes(); }
public abstract void OnClickCube(TessCube cube);