public void SetLoading_In(Action actionIn) { Debug.Log("SetLoading_InAAAAAAAAAAAAAAAAAAAA"); sceneTransitionController.gameObject.SetActive(true); sceneTransitionController.ShowLoading_In(() => { actionIn.Invoke(); }); }
public void ShowLoadingToGame() { sceneTransitionController.gameObject.SetActive(true); sceneTransitionController.ShowLoading_In(() => { if (forceLevel > 0) { SceneManager.LoadScene("Level" + forceLevel); } else { SceneManager.LoadScene("Level" + Config.GetLevel()); } }); }