public void On_Load() { // SaveSystemManager.s_instance.TestLoadInt(this, "m_levelNbr", ref m_levelNbr); if (SaveSystemManager.Instance.SaveContains(this, SaveSystemManager.GetVariableName(() => m_LevelNbr), DataType.Int)) { m_LevelNbr = SaveSystemManager.Instance.LoadInt(this, SaveSystemManager.GetVariableName(() => m_LevelNbr)); } // if (SaveSystemManager.s_instance.SaveContains(this, "m_score", DataType.Float)) // m_score = SaveSystemManager.s_instance.LoadFloat(this, "m_score"); // m_booling = SaveSystemManager.s_instance.LoadBool(this, "m_booling"); if (SaveSystemManager.Instance.SaveContains(this, SaveSystemManager.GetVariableName(() => m_Position), DataType.Vector3)) { m_Position = SaveSystemManager.Instance.LoadVector3(this, SaveSystemManager.GetVariableName(() => m_Position)); } m_Rotation = SaveSystemManager.Instance.LoadVector3(this, SaveSystemManager.GetVariableName(() => m_Rotation)); // m_name = SaveSystemManager.s_instance.LoadString(this, "m_name"); UpdateText(); }
public void On_Save() { SaveSystemManager.Instance.SaveInt(this, SaveSystemManager.GetVariableName(() => m_LevelNbr), m_LevelNbr); SaveSystemManager.Instance.SaveFloat(this, SaveSystemManager.GetVariableName(() => m_Score), m_Score); SaveSystemManager.Instance.SaveBool(this, SaveSystemManager.GetVariableName(() => m_Booling), m_Booling); SaveSystemManager.Instance.SaveVector3(this, SaveSystemManager.GetVariableName(() => m_Position), m_Position); SaveSystemManager.Instance.SaveVector3(this, SaveSystemManager.GetVariableName(() => m_Rotation), m_Rotation); SaveSystemManager.Instance.SaveString(this, SaveSystemManager.GetVariableName(() => m_name), m_name); SaveSystemManager.Instance.SaveAllDataInFile(); }