Public Member Functions | |
| void | Move (Vector3 currentVelocity, MovementState state) |
| Should be called for each movement update of the player. | |
| void | LockMove (bool locked) |
| Should be called to (un)lock player movement. | |
| void | Attack () |
| Should be called on player attacks. | |
Public Member Functions inherited from Module | |
| virtual void | Awake () |
Events | |
| Action< Vector3, MovementState > | OnMove |
| An event which gives updates about the current velocity and movement state of the player. MovementState.Moving does not mean the velocity is > 0! | |
| Action< bool > | OnLockMove |
| An event which is called once the player movement should be (un)locked. | |
| Action | OnAttack |
| An event which is called once the player is attacking. | |
| void PlayerEventManager.Attack | ( | ) |
References OnAttack.
| void PlayerEventManager.LockMove | ( | bool | locked | ) |
| locked |
References OnLockMove.
| void PlayerEventManager.Move | ( | Vector3 | currentVelocity, |
| MovementState | state | ||
| ) |
| currentVelocity | The players velocity |
| state | The current state. |
References OnMove.
| Action PlayerEventManager.OnAttack |
Referenced by Attack().
| Action<bool> PlayerEventManager.OnLockMove |
Referenced by LockMove().
| Action<Vector3, MovementState> PlayerEventManager.OnMove |
Referenced by Move().