Where does C# game logic go?

Hello.

I'm having difficulty finding out where my Game Logic goes in Unity.

I understand that object-based AI, such as moving a game object across the screen over multiple frames, is done via attaching scripts to render objects.

But what about game logic that isn't tied to any particular object? Is there a "main()" or something where I can put code that orchestrates all visual objects, maintains game state, etc.?

Thanks, BT

You can just create an empty gameobject and simply place scripts on it to handle things such as GUI, game state, and anything else you might want to control(player stats or generation of the map, or even things like day and night cycles). Unless I am reading your question wrong is that along the lines of what you were wondering?