override public LevelGoalData ForSave() { TimedGoalData data = new TimedGoalData(); data = BaseForSave(data) as TimedGoalData; data.timeLeft = timeLeft; return(data); }
override public void Load(LevelGoalData data) { TimedGoalData casted = data as TimedGoalData; if (casted != null) { timeLeft = casted.timeLeft; } base.Load(data); }