Manages player movement, interaction with NPCs, and state transitions. Handles gravity, animations, and camera behavior during interactions.
More...
|
void | StartInteraction (NPC npc) |
| Starts interaction with the specified NPC. Adjusts camera and player state for interaction.
|
|
void | EndInteraction () |
| Ends interaction with the currently interacting NPC. Resets camera and player state.
|
|
Manages player movement, interaction with NPCs, and state transitions. Handles gravity, animations, and camera behavior during interactions.
◆ EndInteraction()
void PlayerController.EndInteraction |
( |
| ) |
|
Ends interaction with the currently interacting NPC. Resets camera and player state.
◆ StartInteraction()
void PlayerController.StartInteraction |
( |
NPC |
npc | ) |
|
Starts interaction with the specified NPC. Adjusts camera and player state for interaction.
- Parameters
-
npc | The NPC to interact with. |
◆ currentlyInteractingNPC
NPC PlayerController.currentlyInteractingNPC = null |
Reference to the NPC the player is currently interacting with.
◆ gravity
float PlayerController.gravity = 9.81f |
Gravity applied to the player.
◆ Instance
◆ moveSpeed
float PlayerController.moveSpeed = 5f |
Speed at which the player moves.
The documentation for this class was generated from the following file: