Esempio n. 1
0
 public void SaveData(Text dateTime)
 {
     Debug.Log("進行存檔");
     //BGM及音效
     CentralData.GetInst().BGMVol = audioMgr.BGMSlider.value;
     CentralData.GetInst().SFXVol = audioMgr.SFXSlider.value;
     //魔塵
     CentralData.GetInst().dust = getHitEffect.dust;
     //技能等級
     CentralData.GetInst().fireSkillLevel   = skillBase.fireSkillLevel;
     CentralData.GetInst().poisonSkillLevel = skillBase.poisonSkillLevel;
     CentralData.GetInst().stoneSkillLevel  = skillBase.stoneSkillLevel;
     CentralData.GetInst().waterSkillLevel  = skillBase.waterSkillLevel;
     CentralData.GetInst().windSkillLevel   = skillBase.windSkillLevel;
     //角色數值
     for (int i = 0; i < (int)CharacterStats.Count; i++)
     {
         CentralData.GetInst().charaterStats[i] = characterBase.charaterStats[i];
     }
     dateTime.text = DateTime.Now.ToString();
     CentralData.SaveData();
 }
Esempio n. 2
0
 public void SaveData()
 {
     // 進行對CentralData存檔
     Debug.Log("進行對CentralData存檔");
     CentralData.SaveData();
 }