![]() |
Adventure Creator
1.76.2
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
|
Public Types | |
enum | HotspotGatherMode { TriggerDetection, CustomScript } |
Public Member Functions | |
void | AddHotspot (Hotspot hotspot) |
Adds a Hotspot to the internal collection of detected Hotspots, provided gatherMode = GatherMode.CustomScript More... | |
void | RemoveHotspot (Hotspot hotspot) |
Removes a Hotspot from the internal collection of detected Hotspots, provided gatherMode = GatherMode.CustomScript More... | |
void | _Update () |
Hotspot[] | GetAllDetectedHotspots () |
Gets all Hotspots found within the object's Trigger collider. More... | |
Hotspot | GetSelected () |
Gets the currently-active Hotspot. More... | |
void | ForceRemoveHotspot (Hotspot _hotspot) |
Removes a Hotspot from the script's internal record of detected Hotspots. More... | |
bool | IsHotspotInTrigger (Hotspot hotspot) |
Checks if a specific Hotspot is within its volume. More... | |
void | HighlightAll () |
Public Attributes | |
HotspotGatherMode | gatherMode = HotspotGatherMode.TriggerDetection |
Protected Attributes | |
Hotspot | nearestHotspot |
int | selected = 0 |
List< Hotspot > | hotspots = new List<Hotspot>() |
int | hotspotLayerInt |
int | distantHotspotLayerInt |
Properties | |
Hotspot | NearestHotspot [get] |
Used to only allow Hotspots within a given volume to be selectable. Attach this as a child object to your Player prefab, and assign it as your Hotspot detector child - be sure to set "hotspot detection" to Player Vicinity in SettingsManager.
void AC.DetectHotspots._Update | ( | ) |
Detects Hotspots in its vicinity. This is public so that it can be called by StateHandler every frame.
void AC.DetectHotspots.AddHotspot | ( | Hotspot | hotspot | ) |
void AC.DetectHotspots.ForceRemoveHotspot | ( | Hotspot | _hotspot | ) |
Hotspot [] AC.DetectHotspots.GetAllDetectedHotspots | ( | ) |
Gets all Hotspots found within the object's Trigger collider.
Hotspot AC.DetectHotspots.GetSelected | ( | ) |
void AC.DetectHotspots.HighlightAll | ( | ) |
Highlights all Hotspots within its volume.
bool AC.DetectHotspots.IsHotspotInTrigger | ( | Hotspot | hotspot | ) |
void AC.DetectHotspots.RemoveHotspot | ( | Hotspot | hotspot | ) |