Updated Popup UI and robot generation

This commit is contained in:
=
2026-04-28 16:00:55 +02:00
parent 83d9620e39
commit 5e4e325ec7
3 changed files with 18 additions and 9 deletions
+1
View File
@@ -88,6 +88,7 @@ public partial class World : Node3D
if (Input.IsActionJustPressed("spawn_robot") && robots.Count < maxRobotCount)
{
Robot robot = ResourceLoader.LoadRobotPrefab().Instantiate<Robot>();
robot.Name = $"Robot #{robots.Count + 1}";
robot.Position = map[0].tiles[rand.Next(layerSize), rand.Next(layerSize)].Position;
AddChild(robot);
robots.Add(robot);