Nest
A class in Root.Township, Alta.Creatures.
A spot creatures can claim as a nest. Enabled nests are free and listed by type, and ActiveNest AI finds and claims them.
- Listed in Creatures and AI
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
Nest() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
Properties
| Member | What it is |
|---|---|
bool IsFree { get; set; } | Whether the nest is free. It is the component's enabled flag, so claiming a nest disables it. |
Methods
| Member | What it is |
|---|---|
static Nest FindClosest(NestType type, Vector3 position, float maximumDistance) | Returns the closest free nest of a type within the given distance, or null. |
2 private and internal methods
Used in
Members of other types that take, return or hold a Nest: