Class BlasterActuator
The blaster for use by Troopers.
Inheritance
System.Object
BlasterActuator
Namespace: KaijuSolutions.Agents.Exercises.CTF
Syntax
public class BlasterActuator : KaijuAttackActuator
Properties
Ammo
The ammo for this blaster.
Declaration
public int Ammo { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
HandleHit(RaycastHit, Transform)
Handle the hit logic.
Declaration
protected override bool HandleHit(RaycastHit hit, Transform t)
Parameters
| Type | Name | Description |
|---|---|---|
| RaycastHit | hit | The hit details. |
| Transform | t | The transform currently being checked. This may not be the same as the one in the hit parameter in the case of checking parents. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If the attack was a success or not. |
PostActions(Boolean)
Any final actions to perform after the actuator has performed.
Declaration
protected override void PostActions(bool success)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | success | If it succeeded or not. |
PreConditions()
Any conditions which must be passed to begin running the actuator. This does not need to account for the
Declaration
protected override bool PreConditions()
Returns
| Type | Description |
|---|---|
| System.Boolean | If the conditions to run this were passed. |