Hpbar
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user