Adventure Creator
1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
|
Public Member Functions | |
void | DrawArrows () |
void | TurnOn () |
Enables the ArrowPrompt. More... | |
void | TurnOff () |
Disables the ArrowPrompt. More... | |
void | DoUp () |
void | DoDown () |
void | DoLeft () |
void | DoRight () |
bool | ReferencesAsset (ActionListAsset actionListAsset) |
virtual List< ActionListAsset > | GetReferencedActionListAssets () |
Public Attributes | |
ActionListSource | source |
ArrowPromptType | arrowPromptType = ArrowPromptType.KeyAndClick |
Arrow | upArrow |
Arrow | downArrow |
Arrow | leftArrow |
Arrow | rightArrow |
bool | disableHotspots = true |
float | positionFactor = 1f |
float | scaleFactor = 1f |
Protected Attributes | |
bool | isOn = false |
AC_Direction | directionToAnimate |
float | alpha = 0f |
float | arrowSize = 0.05f |
Properties | |
float | LargeSize [get] |
float | SmallSize [get] |
This component provides the ability to display up to four arrows on-screen. Each arrow responds to player input, and can run an ActionList when the relevant input is detected.
void AC.ArrowPrompt.DoDown | ( | ) |
Triggers the "down" arrow.
void AC.ArrowPrompt.DoLeft | ( | ) |
Triggers the "left" arrow.
void AC.ArrowPrompt.DoRight | ( | ) |
Triggers the "right" arrow.
void AC.ArrowPrompt.DoUp | ( | ) |
Triggers the "up" arrow.
void AC.ArrowPrompt.DrawArrows | ( | ) |
Draws the arrow(s) on screen, if appropriate. This function is called every frame by StateHandler.
void AC.ArrowPrompt.TurnOff | ( | ) |
Disables the ArrowPrompt.
void AC.ArrowPrompt.TurnOn | ( | ) |
Enables the ArrowPrompt.
ArrowPromptType AC.ArrowPrompt.arrowPromptType = ArrowPromptType.KeyAndClick |
What kind of input the arrows respond to (KeyOnly, ClickOnly, KeyAndClick)
bool AC.ArrowPrompt.disableHotspots = true |
If True, then Hotspots will be disabled when the arrows are on screen
float AC.ArrowPrompt.positionFactor = 1f |
A factor for the arrow position
float AC.ArrowPrompt.scaleFactor = 1f |
A factor for the arrow size
ActionListSource AC.ArrowPrompt.source |
Where the Actions are stored when not being run (InScene, AssetFile)