Hello! I’m working in a 2D game and i have a problem loading scenes. When i press the button to load a scene the scene loads very slow. I tried with a scene totally empty and also loads slow.
I Hope you can help me. This is my code:
void FixedUpdate () {
//play btns
playBtn.onClick.AddListener(ShowPlay);
playPanel.onClick.AddListener(ClosePlay);
levelsBtn.onClick.AddListener(LevelsBtn);
//Store
storeBtn.onClick.AddListener(ShowStore);
storePanel.onClick.AddListener(CloseStore);
//options
optionsBtn.onClick.AddListener(ShowOptions);
optionsPanel.onClick.AddListener(CloseOptions);
}
//Play
void ShowPlay()
{
playGO.SetActive(true);
}
void ClosePlay()
{
playGO.SetActive(false);
}
void LevelsBtn()
{
SceneManager.LoadScene(2);
}
Sorry for my english