public static bool GetBuyIAP(IAP_ID idPack) { int buyed = PlayerPrefs.GetInt(IAP + idPack.ToString(), 0); if (buyed == 1) { return(true); } return(false); }
public static void SetBuyIAP(IAP_ID idPack) { PlayerPrefs.SetInt(IAP + idPack.ToString(), 1); PlayerPrefs.Save(); }