

Buyable.cs - Put on a button to make it a buyable (send "Buy" message to buy a thing).Send "OnClick" message to add to a currency's global click or tick rates AddCurrencyBonus.cs - Put on a button.The text field will display, numerically, the progress depending on type: from 0 to 100% (Percentage) or 0.0 to 1.0 (Factor) ProgressBarText.cs - Attach this to a Text UI object and link it to a Generator.(Any progress bar that implements the IValue interface will work.) DisplayValue.cs - Display the current Value of a script that implements IValue.DisplayQuantAndMax.cs - Displays Quantity and Max together, one after the other.DisplayQuantity - Display the Quantity of any script that implements IQuantity.DisplayPrice.cs - Display the Price of any script that implements IPrice.DisplayMultiplier.cs - Display either the total Tick multiplier or Click multiplier.DisplayMaximum.cs - Display the Maximum of any script that implements IMaximum.
#Unity cookie clicker game generator
DisplayGeneratorRate.cs - Displays the rate at which a generator generates currency.Displa圜urrencyRate.cs - Displays a tick or click rate of a currency.Displa圜urrency.cs - Display the amount of money currently stored in the linked Currency.(Use these on UI Text objects, or linked to one, to display information about the game or objects in it) ClickForCurrency.cs - Use this on a button (send OnClick) if you want to click it to generate Resource.Generator must be at at least level 1 to generate resources. Generators increase the amount generated every time one is bought. Put on a button with a Buyable script if you want the ability to to be purchaseable/upgradeable. This can occur on a timer (tick) or once every time something is clicked (OnClick). Generator.cs - Generates Resource every n seconds.Currency.cs - Tracks a currency type and global bonuses associated with it.I've included a demo Unity Scene (TestScene) with most of these things hooked up and working in a very simple way. Extra currencies might be added later via a new system. The Framework currently only supports one primary Resource. This is a framework of Unity scripts to support creating a Clicker/Idle/Iterative type game (Candy Box, Cookie Clicker, Dirt Inc, etc).
