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); }
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; }
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; }