public void TurnRight() { if (!isWorking) { isWorking = true; PuzzleController.PuzzleColor tempSlotUp = slotUp; slotUp = slotLeft; slotLeft = slotDown; slotDown = slotRight; slotRight = tempSlotUp; SpinPuzzle(-90); } }
public void RandomNewColor() { int[] x= new int[4]; x[0] = 0; x[1] = 1; x[2] = 2; x[3] = 3; Vector4 newColorValue = Shuffle(x); slotUp = GetColor((int)newColorValue.x); slotLeft = GetColor((int)newColorValue.y); slotDown = GetColor((int)newColorValue.z); slotRight = GetColor((int)newColorValue.w); SetJewelColor(); }