❔ [Unity] Should I just move all my old scripts to another folder and start over?

To make a long story short, I'm making a game and there's two gamemodes. The first gamemode turns out to be unfun, and so I want to start working on the second one. Unfortunately, since I'm a beginner at this, I struggle with refactoring and the old code is so inextricably focused on the original gamemode, that none of it is useful or usable for the new gamemode I want to make use of. That being said, I want to start over but still keep the assets I've made in the project. This creates a bit of a problem that, there's SOME usable stuff in every script I've written so far, but there's a lot of unremovable dependencies I don't know how to refactor due to lack of skill + newbie spaghetti code. My initial thought is to just create a bunch of new scripts with different names, but in Unity, the script with the 'GameManager' name is pretty important in some vague way, because it even gets a unique icon when you make it. But my old GameManager is pretty screwed up, and I do kinda want to keep it around if I revisit the gamemode in future. I've got a few options here - moving the old scripts somewhere else and just making a 'different' gamemanager with its own name, or even starting a new project & reimporting the assets I've made in the original project. What should I do here?
3 Replies
Cattywampus
Cattywampus2y ago
or just refactor what you already have?
Cattywampus
Cattywampus2y ago
Code refactoring
In computer programming and software design, code refactoring is the process of restructuring existing computer code—changing the factoring—without changing its external behavior. Refactoring is intended to improve the design, structure, and/or implementation of the software (its non-functional attributes), while preserving its functionality. Po...
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server