Use the right language for the job. Keep your code modular with an object-oriented API using Godot's own GDScript, C#, C++, or bring your own using GDExtension. C# support is currently only available for desktop and mobile platforms as of Godot 4.2. Use Godot 3 to run C# on the Web platform.