Description
The ClimbingObject
property represents the GameObject
that the character is currently climbing. This is typically a ladder trigger within the game environment. It is part of the MoveModeLadder
class, which handles the character's movement when climbing ladders.
Usage
To use the ClimbingObject
property, you can access it from an instance of the MoveModeLadder
class. This property is useful for determining which object the player is interacting with when climbing.
Example
// Example of accessing the ClimbingObject property
// Assume 'ladderMode' is an instance of MoveModeLadder
GameObject currentClimbingObject = ladderMode.ClimbingObject;
if (currentClimbingObject != null)
{
// Perform operations with the climbing object
// For example, log the name of the object
string objectName = currentClimbingObject.Name;
// Use objectName as needed
}