public void MoveToScene(int id, float delay, bool needSaveCurrent = true)
        {
            if (needSaveCurrent)
            {
                SaveInstance.FireEvent_OnSave();
            }

            GameController.loadingProgress = 0.0f;

            if (OnLoadingScene != null)
            {
                OnLoadingScene();
            }

            StartCoroutine(_LoadSceneAsync(id, delay));
        }
Esempio n. 2
0
 void _SaveGame()
 {
     SaveInstance.FireEvent_OnSave();
 }