|
TopDown Engine v4.5
|
This action is used to force your character to switch to another weapon. Just drag a weapon prefab into its NewWeapon slot and you're good to go. More...
Public Member Functions | |
| override void | Initialization () |
| On init we grab our CharacterHandleWeapon ability. | |
| override void | PerformAction () |
| On PerformAction we change weapon. | |
| override void | OnEnterState () |
| Resets our counter. | |
| Public Member Functions inherited from MoreMountains.Tools.AIAction | |
| void | PerformAction () |
| virtual void | OnExitState () |
| Describes what happens when the brain exits the state this action is in. Meant to be overridden. | |
Public Attributes | |
| Weapon | NewWeapon |
| the new weapon to equip when that action is performed | |
| Public Attributes inherited from MoreMountains.Tools.AIAction | |
| InitializationModes | InitializationMode |
| whether initialization should happen only once, or every time the brain is reset | |
| string | Label |
| a label you can set to organize your AI Actions, not used by anything else | |
Protected Member Functions | |
| virtual void | ChangeWeapon () |
| Performs the weapon change. | |
| Protected Member Functions inherited from MoreMountains.Tools.AIAction | |
| virtual void | Awake () |
| On Awake we grab our AIBrain. | |
Protected Attributes | |
| CharacterHandleWeapon | _characterHandleWeapon |
| int | _change = 0 |
| Protected Attributes inherited from MoreMountains.Tools.AIAction | |
| bool | _initialized |
| AIBrain | _brain |
Additional Inherited Members | |
| Public Types inherited from MoreMountains.Tools.AIAction | |
| enum | InitializationModes { EveryTime , OnlyOnce } |
| Properties inherited from MoreMountains.Tools.AIAction | |
| virtual bool | ActionInProgress [get, set] |
| virtual bool | ShouldInitialize [get] |
This action is used to force your character to switch to another weapon. Just drag a weapon prefab into its NewWeapon slot and you're good to go.
|
protectedvirtual |
Performs the weapon change.
|
virtual |
On init we grab our CharacterHandleWeapon ability.
Reimplemented from MoreMountains.Tools.AIAction.
|
virtual |
Resets our counter.
Reimplemented from MoreMountains.Tools.AIAction.
| override void MoreMountains.TopDownEngine.AIActionChangeWeapon.PerformAction | ( | ) |
On PerformAction we change weapon.
|
protected |
|
protected |
| Weapon MoreMountains.TopDownEngine.AIActionChangeWeapon.NewWeapon |
the new weapon to equip when that action is performed