public IEnumerator CheckRecover() { Debug.Log("BattleRecover.CheckRecover."); if (base.stateManager.onEnableTutorial) { yield break; } Debug.LogFormat("onServerConnect: {0}.", new object[] { base.onServerConnect }); if (base.onServerConnect) { BattleDataStore battleDataStore = ClassSingleton <BattleDataStore> .Instance; Debug.Log("battleDataStore.CheckRecoverForBattle."); IEnumerator wait = battleDataStore.CheckRecoverForBattle(delegate(bool result) { this.isMustLoad = result; Debug.LogFormat("CheckRecoverForBattleのcallback. result:{0}", new object[] { result }); }); while (wait.MoveNext()) { yield return(null); } } yield break; }
public void Save() { if (base.stateManager.onEnableTutorial) { return; } if (base.onServerConnect) { BattleDataStore instance = ClassSingleton <BattleDataStore> .Instance; instance.Save(base.battleStateData); } }
private void Load() { Debug.Log("BattleRecover.Load()."); if (base.onServerConnect) { Debug.LogFormat("onServerConnect: {0}.", new object[] { base.onServerConnect }); BattleDataStore instance = ClassSingleton <BattleDataStore> .Instance; instance.Load(base.stateManager.battleStateData); base.battleStateData.beforeConfirmDigiStoneNumber = DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.point; base.battleStateData.ChangePlayerLeader(base.battleStateData.leaderCharacterIndex); base.battleStateData.ChangeEnemyLeader(base.battleStateData.leaderCharacterIndex); } }