Example #1
0
	public void LoadBuffSaveData(UserBase user)
	{
		DateTime loadedStartTime = DateTime.MinValue;
		
		bool loadedLastTimeSuccessful = DateTime.TryParse(PlayerPrefs.GetString(SystemInfo.deviceUniqueIdentifier + "_Buff_itemID_" + itemID + " _StartTime_"), out loadedStartTime);
				
		if (loadedLastTimeSuccessful == true) //we successfully loaded buff
			user.UseBuffAtCustomTime(this, loadedStartTime);
	}