Added check to hide robots not in the current layer

This commit is contained in:
=
2026-05-01 18:40:07 +02:00
parent dd81c2ff2e
commit 75818c22d5
+3
View File
@@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Godot;
@@ -27,6 +28,8 @@ public partial class Robot : Node3D
}
}
Visible = Math.Round(Math.Abs(Position.Y / GameData.tileHeight), 0) == GameData.visibleLayer;
}
public void Move()
{