Class Pickup
Base pickup class for Troopers to pickup.
Inherited Members
Namespace: KaijuSolutions.Agents.Exercises.CTF
Syntax
public abstract class Pickup : KaijuBehaviour
Properties
Colliders
All colliders attached to this.
Declaration
protected IReadOnlyList<Collider> Colliders { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<Collider> |
Renderers
All renderers attached to this.
Declaration
protected IReadOnlyList<MeshRenderer> Renderers { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<MeshRenderer> |
Methods
Interact(Trooper)
What to do when interacted with.
Declaration
public abstract bool Interact(Trooper trooper)
Parameters
| Type | Name | Description |
|---|---|---|
| Trooper | trooper | The Trooper interracting with this. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If the interaction was successful or not. |