Example #1
0
    public void addGardenDecor(Inventory.GardenDecorType gardenDecorType, int amount)
    {
        inventory.gardenDecorCounts[(int)gardenDecorType] += amount;

        GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControl>().queueRewardText("" + gardenDecorType.ToString().Replace("_", " "), GameControl.LevelUpColor);

        Save(false);
    }
Example #2
0
 public BaseGardenDecor(Inventory.GardenDecorType gardenDecorType, string longLat, int variation)
 {
     this.gardenDecorType = gardenDecorType;
     this.longLat         = longLat;
     this.scale           = 1;
     this.yRotation       = 0;
     this.yOffset         = 0;
     this.variation       = variation;
 }
Example #3
0
 public GardenDecor(string name, int bmCost, int coinCost, string imagePath, Inventory.GardenDecorType gardenDecorType, Inventory.ItemRarity rarity)
 {
     this.name            = name;
     this.bmCost          = bmCost;
     this.coinCost        = coinCost;
     this.imagePath       = imagePath;
     this.gardenDecorType = gardenDecorType;
     this.rarity          = rarity;
 }