Description
The Priority
property of the MoveModeWalk
class determines the priority level of the walking movement mode within the movement system. This integer value is used to decide which movement mode should be active when multiple modes are available. A higher priority value indicates a higher precedence over other movement modes.
Usage
To use the Priority
property, you can get or set its value to control the precedence of the walking mode in the movement system. This is particularly useful when you have multiple movement modes and need to ensure that the walking mode is selected under specific conditions.
Example
// Example of setting the Priority property
MoveModeWalk walkMode = new MoveModeWalk();
walkMode.Priority = 10; // Set a high priority for walking mode
// Example of getting the Priority property
int currentPriority = walkMode.Priority;
// Use currentPriority to make decisions in your game logic