Add more buttons to account manager + async scene management
This commit is contained in:
@@ -9,7 +9,7 @@ public class ButtonToScene : MonoBehaviour
|
||||
void Awake()
|
||||
{
|
||||
gameObject.GetComponent<Button>().onClick.AddListener(() => {
|
||||
SceneManager.LoadScene(sceneName);
|
||||
SceneManager.LoadSceneAsync(sceneName);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user