rise-and-swine/Assets/Scripts/Assembly-CSharp/ShopOpener.cs
2023-02-25 23:04:03 -05:00

20 lines
418 B
C#

using UnityEngine;
public class ShopOpener : MonoBehaviour
{
public void OpenShop()
{
if (Loader.isLoadingLevel || Singleton<BuildCustomizationLoader>.Instance.IsOdyssey)
{
return;
}
this.toggledGameObject.SetActive(false);
Singleton<IapManager>.Instance.OpenShopPage(delegate
{
this.toggledGameObject.SetActive(true);
}, null);
}
[SerializeField]
private GameObject toggledGameObject;
}