예제 #1
0
    override public LevelGoalData ForSave()
    {
        TimedGoalData data = new TimedGoalData();

        data          = BaseForSave(data) as TimedGoalData;
        data.timeLeft = timeLeft;
        return(data);
    }
예제 #2
0
    override public void Load(LevelGoalData data)
    {
        TimedGoalData casted = data as TimedGoalData;

        if (casted != null)
        {
            timeLeft = casted.timeLeft;
        }
        base.Load(data);
    }