Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(-6)

Do you know what dependencies are? Private variables maybe? I'm ready to crucify you for ts

Now, honestly. I see that you've made great strides in terms of game design, but not yet in terms of code... haha, sorry. I'm not judging you for that, I was the same for most of the time, I really advise you to start learning Unity C#, you can ask ChatGPT how to improve your code, trust me, it won't be a waste of time. Sometimes, when it comes to optimization, it's not always worth trying to optimize the renderer (as you are probably trying to do). It sometimes better to look at the scripts themselves - currently you've got a mess of serializations and “if else” coding there. Another question: have you used AI for the code? Just curious. So, I advise you to learn about attributes (IMPORTANT THINGY!!!), and for example, enum usage. And I swear, it will really help simplify or optimize your work. Also, you don't always have to use one scene for night (still dont know why everybody uses it). If you don't want to bother with the game manager code, make multiple scenes. I'm serious, it's better to configure the night using a scriptable object or smth and simply create a separate scene for each night than to use one scene with a complicated “if the night is over, call the increase anger function” type of logic. Personally, I think that many scenes are better for your project than just a few. good luck making it better (and sorry for decompiling ur game its just 4 fun) (ps. there should have been a picture of your game managers with public variables but it doesn't let me put a photo)