Class NumberPickup
Pickup class which will restore some numeric value before going on cooldown.
Inherited Members
Namespace: KaijuSolutions.Agents.Exercises.CTF
Syntax
public abstract class NumberPickup : Pickup
Properties
Cooldown
The current cooldown time left in seconds on this pickup.
Declaration
public float Cooldown { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
OnCooldown
If this pickup is currently on a cooldown.
Declaration
public bool OnCooldown { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
Interact(Trooper)
What to do when interacted with.
Declaration
public override 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. |
Overrides
OnSetActive(Boolean)
Additional behaviour for when the active state of this has changed.
Declaration
protected abstract void OnSetActive(bool active)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | active | If this is currently active or not. |