A class in Root.Township, the global namespace.
A TriggerShape that adds its own sphere trigger collider when initialised from code.
Constructors
| Member | What it is |
|---|
TriggerSphere() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|
private SphereCollider sphereCollider | The sphere collider added by Initialize. |
Properties
| Member | What it is |
|---|
float Radius { get; set; } | The sphere's radius, or 0 before Initialize. |
Methods
| Member | What it is |
|---|
void Initialize(float radius) | Adds a trigger sphere collider with the given radius and renames the object. |