Next: Resource Receiver, Up: Resource Management [Contents][Index]
Resource Manager allows the player to have client-side resources like minerals, gold, or even experience points, which when spent successfully will cause MultiGame to send messages. This can be used to unlock new items/abilities, purchase units, or anything really.
bool
showGuiShould we show the resources using an immediate mode GUI? Not suitable for mobile.
Default value: true
Rect
guiAreaNormalized viewport rectangle indicating the screen area for the IMGUI. Numbers are a percentage of screen space between 0 and 1. Not suitable for mobile devices.
Default value: new Rect(.71f,.01f,.28f,.1f)
GUISkin
guiSkinAn optional skin for the IMGUI, if used
string
resourceNameA unique name to identify this resource
float
quantityHow much of this resource do we currently have?
float
limitThe most we can have of this resource
float
tickTimeIf non-zero, ’Tick Amount’ resources will be added at this interval (in seconds)
float
tickAmountThe amount of this resource we want to add each interval
bool
visibleIf we’re using IMGUI, should we show this resource in the list?
Default value: true
Saves the current resources to Player Prefs. Works on all platforms.
Loads the resource list from Player Prefs. Works on all platforms.
Selects a resource by it’s name from the list of Resources
How much do you want to adjust the limit for the currently named resource? Must be used after calling ’SelectResource’ and passing the name of the resource you want to adjust the limit for.
Opens the IMGUI
Closes the IMGUI
Toggles the IMGUI
Shows a given resource in the IMGUI (if applicable).
Argument: The name of the resource we want to show.
Hides a given resource in the IMGUI (if applicable).
Argument: The name of the resource we want to hide.
bool
showGuiShould we show the resources using an immediate mode GUI? Not suitable for mobile.
Default value: true
Rect
guiAreaNormalized viewport rectangle indicating the screen area for the IMGUI. Numbers are a percentage of screen space between 0 and 1. Not suitable for mobile devices.
Default value: new Rect(.71f,.01f,.28f,.1f)
GUISkin
guiSkinAn optional skin for the IMGUI, if used
string
resourceNameA unique name to identify this resource
float
quantityHow much of this resource do we currently have?
float
limitThe most we can have of this resource
float
tickTimeIf non-zero, ’Tick Amount’ resources will be added at this interval (in seconds)
float
tickAmountThe amount of this resource we want to add each interval
bool
visibleIf we’re using IMGUI, should we show this resource in the list?
Default value: true
Saves the current resources to Player Prefs. Works on all platforms.
Loads the resource list from Player Prefs. Works on all platforms.
Selects a resource by it’s name from the list of Resources
How much do you want to adjust the limit for the currently named resource? Must be used after calling ’SelectResource’ and passing the name of the resource you want to adjust the limit for.
Opens the IMGUI
Closes the IMGUI
Toggles the IMGUI
Shows a given resource in the IMGUI (if applicable).
Argument: The name of the resource we want to show.
Hides a given resource in the IMGUI (if applicable).
Argument: The name of the resource we want to hide.
Next: Resource Receiver, Up: Resource Management [Contents][Index]