using System.Collections.Generic; using System.Linq; using Godot; namespace Evolution.scripts; public partial class World : Node3D { public static World Instance { get; private set; } public int BoxCount { get; private set; } private readonly List boxScenes = new(); private double maxTimer = 0.01; private double timer; private double fpsTimer; private Label fpsLabel; private Label boxesLabel; private int frameCount; private readonly List frameCounts = new(); public override void _Ready() { Instance = this; boxScenes.Add(GD.Load("res://scenes/GreenBox.tscn")); boxScenes.Add(GD.Load("res://scenes/OrangeBox.tscn")); boxScenes.Add(GD.Load("res://scenes/PurpleBox.tscn")); boxScenes.Add(GD.Load("res://scenes/RedBox.tscn")); boxScenes.Add(GD.Load("res://scenes/Box.tscn")); fpsLabel = GetNode