Example #1
0
    public static bool GetBuyIAP(IAP_ID idPack)
    {
        int buyed = PlayerPrefs.GetInt(IAP + idPack.ToString(), 0);

        if (buyed == 1)
        {
            return(true);
        }
        return(false);
    }
Example #2
0
 public static void SetBuyIAP(IAP_ID idPack)
 {
     PlayerPrefs.SetInt(IAP + idPack.ToString(), 1);
     PlayerPrefs.Save();
 }