using Godot; using System; using System.Collections.Generic; public partial class CampusController : Node2D { private Control _taskContainer; private Control _logContainer; private Button _taskToggle; private Button _logToggle; [Export] public PackedScene StudentScene { get; set; } [Export] public int StudentCount { get; set; } = 6; [Export] public float CoverageStep { get; set; } = 48.0f; [Export] public int MaxCoveragePoints { get; set; } = 200; private NavigationRegion2D _navigationRegion; private Node2D _studentsRoot; private readonly List _coveragePoints = new(); private bool _spawnPending = true; // Called when the node enters the scene tree for the first time. public override void _Ready() { _taskContainer = GetNode("Task"); _logContainer = GetNode("Log"); // Path to buttons based on scene structure _taskToggle = GetNode