public override void DataUpdate() { if (data == null) { data = new Dictionary <string, IDataHolder>(); } progression = GetDataHolder <GameProgressionData>(PROGRESSION_KEY); successRecord = GetDataHolder <LevelSuccessData>(LEVELSUCCESS_KEY); }
public override void DataInit() { data = new Dictionary <string, IDataHolder>(); var progression = new GameProgressionData(); progression.Initialize(); data.Add(PROGRESSION_KEY, progression); var successRecord = new LevelSuccessData(); successRecord.Initialize(); data.Add(LEVELSUCCESS_KEY, successRecord); }