if(dates == null)
{
DateTime tempDate = WorldTimeAPI.instance.GetCurrentDateTime();
print(tempDate);
dates.SetDailyWeeklyDate(tempDate);
SaveSystem.TaskDateSave(dates);
}
the error is on third line of the block. The print is printing the date, no issues there.
the SetDailyWeeklyDates()
function is below:
public void SetDailyWeeklyDate(DateTime date)
{
dailyTaskDate = date;
weeklyTaskDate = date;
}
Thoughts?