Ejemplo n.º 1
0
    public bool CanYouAfford(int price, BuyCurrencyType currency)
    {
        if (currency == BuyCurrencyType.Magnets)
        {
            if (Magnets >= price)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
        else if (currency == BuyCurrencyType.Crystals)
        {
            if (Crystals >= price)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }

        else
        {
            return(false);
        }
    }
Ejemplo n.º 2
0
 public void RemoveCurrency(int amount, BuyCurrencyType currency)
 {
     if (currency == BuyCurrencyType.Magnets)
     {
         Magnets -= amount;
     }
     else if (currency == BuyCurrencyType.Crystals)
     {
         Crystals -= amount;
     }
     GUIManager.Instance.UpdateMagnetsCount();
 }
Ejemplo n.º 3
0
    public bool CanYouAfford(int price, BuyCurrencyType currency)
    {
        if(currency == BuyCurrencyType.Coins)
        {
            if(Coins >= price)
                return true;
            else
                return false;
        }
        else if(currency == BuyCurrencyType.Magnets)
        {
            if(Magnets >= price)
                return true;
            else
                return false;
        }
		else if(currency == BuyCurrencyType.CitizenPoints)
		{
			if(CitizenPoints >= price)
				return true;
			else
				return false;
		}
        
        else
            return false;
    }
Ejemplo n.º 4
0
    public void RemoveCurrency(int amount, BuyCurrencyType currency)
    {
        if(currency == BuyCurrencyType.Coins)
        {
            Coins -= amount;
        }
        else if(currency == BuyCurrencyType.Magnets)
        {
            Magnets -= amount;
        }
		else if(currency == BuyCurrencyType.CitizenPoints)
		{
			CitizenPoints -= amount;
		}
		hasWalletChange = true;
		GUIManager.Instance.UpdateCurrency();
    }
Ejemplo n.º 5
0
    public void AddCurrency(int amount, BuyCurrencyType currency)
    {
        if(currency == BuyCurrencyType.Coins)
        {
            Coins += amount;
        }
        else if(currency == BuyCurrencyType.Magnets)
        {
            Magnets += amount;
        }
		else if(currency == BuyCurrencyType.CitizenPoints)
		{
			CitizenPoints += amount;
		}
		hasWalletChange = true;
    }
Ejemplo n.º 6
0
 public void RemoveCurrency(int amount, BuyCurrencyType currency)
 {
     if(currency == BuyCurrencyType.Magnets)
     {
         Magnets -= amount;
     }
     else if(currency == BuyCurrencyType.Crystals)
     {
         Crystals -= amount;
     }
     GUIManager.Instance.UpdateMagnetsCount();
 }
Ejemplo n.º 7
0
    public bool CanYouAfford(int price, BuyCurrencyType currency)
    {
        if(currency == BuyCurrencyType.Magnets)
        {
            if(Magnets >= price)
                return true;
            else
                return false;
        }
        else if(currency == BuyCurrencyType.Crystals)
        {
            if(Crystals >= price)
                return true;
            else
                return false;
        }

        else
            return false;
    }