This commit is contained in:
ohgushiyuga
2026-07-22 16:20:19 +09:00
parent 8506e8d155
commit 2f47302b9e
6 changed files with 395 additions and 1331 deletions

View File

@@ -45,7 +45,7 @@ public class PuzzleBlock : MonoBehaviour
{
List<Vector2Int> rotated = new List<Vector2Int>();
// 現在のY回転を90度単位に丸める (0, 1, 2, 3)
int steps = Mathf.RoundToInt(transform.eulerAngles.y / 90f) % 4;
int steps = Mathf.RoundToInt(transform.eulerAngles.y / 180f) % 4;
if (steps < 0) steps += 4;
foreach (var cell in LocalCells)