예제 #1
0
    //// Google Play Store-specific product identifier subscription product.
    //private static string kProductNameGooglePlaySubscription = "com........";


    private void Awake()
    {
        Instance = this;
        if (!PlayerPrefs.HasKey("Gem"))
        {
            PlayerPrefs.SetInt("Gem", 100);
        }
    }
예제 #2
0
    //// Google Play Store-specific product identifier subscription product.
    //private static string kProductNameGooglePlaySubscription = "com........";


    private void Awake()
    {
        Instance = this;

        if (!PlayerPrefs.HasKey("Gold"))
        {
            PlayerPrefs.SetInt("Gold", 0);
        }

        if (!PlayerPrefs.HasKey("Tokens"))
        {
            PlayerPrefs.SetInt("Tokens", 0);
        }

        if (!PlayerPrefs.HasKey("AddsRemoved"))
        {
            PlayerPrefs.SetInt("AddsRemoved", 0);
        }
    }