Example #1
0
    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]];
    }
Example #2
0
 public override void OnClickCube(TessCube cube)
 {
     isUnfolded = !isUnfolded;
     ToggleCubes();
 }
Example #3
0
 public abstract void OnClickCube(TessCube cube);