protected override bool Init() { vitaSaveManager.Open(this); Debug.Log("OpenSaveManager"); vitaSaveManager.Save(); return(true); }
private void Start() { _SM = SingletonMonoBehaviour <SoundManager> .Instance; _instance = VitaSaveManager.Instance; _instance.Open(this); _Label_status = GameObject.Find("Label_status").GetComponent <UILabel>(); BackScene = Generics.Scene.PortTop; _Set_Status(Now_State.Idle); _SceneName = Application.loadedLevelName; Debug.Log("Application.loadedLevelName: " + _SceneName); Hashtable hashtable = null; if (RetentionData.GetData() != null) { hashtable = RetentionData.GetData(); } if (hashtable == null || (int)hashtable["rootType"] != 1) { _Set_Execute_Mode(Execute_Mode.Save_Mode); if ((int)hashtable["rootType"] == 21) { BackScene = Generics.Scene.Strategy; } } else { _Set_Execute_Mode(Execute_Mode.Load_Mode); } if (hashtable != null) { RetentionData.Release(); } if (_Execute_Mode == Execute_Mode.Load_Mode) { DebugUtils.SLog("ロ\u30fcドを実行します"); _DO_LOAD(); } else if (_Execute_Mode == Execute_Mode.Save_Mode) { Debug.Log("セ\u30fcブを実行します"); _DO_SAVE(); SingletonMonoBehaviour <PortObjectManager> .Instance.PortTransition.EndTransition(null); } }