summaryrefslogtreecommitdiff
path: root/Client/Assembly-CSharp/UnlockPopUp.cs
blob: 22675fab264cdca3fd3f1f17935a91095920f996 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using System.Collections;
using UnityEngine;

public class UnlockPopUp : MonoBehaviour
{
	public IEnumerator Show()
	{
		DateTime utcNow = DateTime.UtcNow;
		if ((utcNow.DayOfYear < 350 && utcNow.DayOfYear > 4) || SaveManager.GetPurchase("hats_newyears2018"))
		{
			yield break;
		}
		base.gameObject.SetActive(true);
		SaveManager.SetPurchased("hats_newyears2018");
		while (base.isActiveAndEnabled)
		{
			yield return null;
		}
		yield break;
	}
}