|
virtual void | Initialize () |
| Used for initialization.
|
|
virtual void | BeforeUpdate () |
| Called right before updating the player.
|
|
virtual void | AfterUpdate () |
| Called right after updating the player.
|
|
|
bool | Enabled [get, set] |
| Is this PlayerModule enabled?
|
|
int | ExecutionOrder [get, set] |
| The execution order of this PlayerModule, lower means earlier execution.
|
|
Player | Player [get] |
| The attached global::Player to this PlayerModule.
|
|
Camera | Camera [get] |
| The attached camera to this Player. Shortcut equivalent of "Player.Main.Camera".
|
|
◆ AfterUpdate()
virtual void MFPP.PlayerModule.AfterUpdate |
( |
| ) |
|
|
virtual |
◆ GetAxis()
float MFPP.PlayerModule.GetAxis |
( |
string | axisName | ) |
|
|
protected |
◆ GetAxisRaw()
float MFPP.PlayerModule.GetAxisRaw |
( |
string | axisName | ) |
|
|
protected |
◆ GetButton()
bool MFPP.PlayerModule.GetButton |
( |
string | buttonName | ) |
|
|
protected |
Similar to Input.GetButton(string) but also taking into account MFPP.Player.ControlSettings.ControlsEnabled.
- Parameters
-
buttonName | The name of the axis. |
- Returns
- Returns true while the virtual button identified by buttonName is held down.
◆ GetButtonDown()
bool MFPP.PlayerModule.GetButtonDown |
( |
string | buttonName | ) |
|
|
protected |
Similar to Input.GetButtonDown(string) but also taking into account MFPP.Player.ControlSettings.ControlsEnabled.
- Parameters
-
buttonName | The name of the axis. |
- Returns
- Returns true during the frame the user pressed down the virtual button identified by buttonName.
◆ GetCurrentAxis()
float MFPP.PlayerModule.GetCurrentAxis |
( |
string | axisName | ) |
|
|
protected |
◆ Initialize()
virtual void MFPP.PlayerModule.Initialize |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file:
- Assets/MFPP/Scripts/Player/Modules/PlayerModule.cs