Answer the question
In order to leave comments, you need to log in
Scripts not working properly after scene restart?
In general, if the scene on which you choose the type of skin, the skin is on the platform and when the skin is selected, then the platform with the skin rises a little. In general, there are three scenes, namely 1. Menu 2. Game 3. Skin selection menu. If you go like this Menu > Skin Menu > Menu > SkinMenu, then everything works as it should in the skin menu, but if you go Menu > Skin Menu > Game > > Menu > SkinMenu, then only the camera movement buttons work. Update itself does not work as it should in the update, PlayerPrefs.GetInt("Skin") is checked and, depending on the value, the platform is raised BUT according to the second scenario, it does not rise. How to decide? who faced this? And this is not the first time I suspect that this is a matter of Update, because before I wanted to make the camera constantly spin in place in the main menu from the first launch, it was spinning, but if you go into the game from the menu and back to the menu, but the camera does not spin. But if you add a line to Update Debug.Log("tyap"); then it constantly tugs.
Answer the question
In order to leave comments, you need to log in
And ALL the guys found a solution in void Start , just entered Time.timeScale = 1; And everything works chiki farts
If it clicks, then it means that the Update unit works, your code does not work. So you need something - correctly, to debug your code. Level questions, I wrote something there, but it does not work as I wanted - they are useless. Telepaths will appear only in two thousand years.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question