Namespace
Classes
AdvancePhaseOnClick
Makes a button advance to the next phase on click. Place on an object with a Button component.
AnswerCorrect1
Assessment2
Assessment3
AvailableLabourDisplayer
Makes a text label show your available labour points from a serialized format string. Place on an object with a TextMeshPro component. This component is unused.
BuyButton
Makes a button buy a product from the market on click. Product name is a serialized field. Place on an object with a Button component.
ChildPopulator
Populates a specified grid/list with prefabs containing information about your children. This is unused and has been superceded by FamilyMemberPopulator.cs
ClosePopUpOnClick
On click, close a specified game object. Place on a component with a Button.
CloseYieldTable
Unused.
DisplayTotalWheat
Add to an object with a TextMeshPro component to make it display the player's total wheat.
DisplayWeather
Add to an object with a TextMeshPro component to make it show the weather.
EnableBasedOnPhase
Place this on any object and set its fields to make it be active only during the specified phases.
FamilyMemberPopulator
Populate grids with information about your adults and children. Used in the household management scene.
FarmManager
Holds the main gameplay logic during the farm management scene (phases 1, 2, 3). Handles the irrigation button and harvest button logic.
FarmPlotCell
Represents a tile in the farm management screen that can be pressed on. Represents a single farm plot in your land.
FarmPlotCellPopulator
Generate grid of farm plot cells in the farm management scene.
GameStateInfoDisplayer
Put on a text component to display year, phase, and weather of game.
GiveOxButton
Button to give an adult an ox, disabled if you have no ox/adult already has an ox.
HouseholdOption
A household selection button, click it to choose the household you play as.
HouseholdSelectionPopulator
Populate the household selection screen with premade Households.
LabourDisplayer
Display the number of hired workers in the family
LoadSceneOnClick
Makes a Button component load a scene on click, the scene is specified by a serialized field.
MaxIrrigationDisplayer
Make a text component show how many farm plots you can irrigate depending on your owned number of tubewells.
NumFamilyMembersDisplayer
Makes a text label show how many adults or children you have in your family given a format string.
PlayerFarmSizeDisplayer
Makes a text component show how many farm plots you own.
PlayerMoneyDisplayer
Make a text component display your money with a formatted string.
PlayerWheatDisplayer
Display the player's wheat in a formatted string.
PopupButton
PopupManager
Helper class to show popups during the simulation.
ProductAmountDisplayer
Makes a text component display how many of a given product you have in your inventory based on a format string.
ProductDescriptionDisplayer
Make a text component dislay the description of a given product in the market.
ProductPriceDisplayer
Make a text component display the price of a product in the market given a format string.
Result
SceneUtils
Helper functions for scene loading. Mostly a wrapper around Unity's SceneManager.
SellButton
Make a button component sell a product from your inventory and gives you money.
ShowFamilyMembers
Makes a text component show a summary of your family members.
ShowPopupOnClick
Make a button component show a popup on click given various serialized fields customizing the popup.
ShowWheatPrice
Make a text component show current year's wheat price.
ShowYieldTable
Unused.
TabToggler
Unused.
ToggleIfHasProduct
Enable or disable a Toggle component depending on if you have a given product in your inventory.
ToolToggle
A toggle for selecting which tool to use during Phase 3.
UIDocumentLoadSceneButton
Put this on a UIDocument with buttons in it. This script makes it so all the buttons with class "load-scene-button" load a scene upon click.