C# Class CharacterMover, TheUnseen

Inheritance: MonoBehaviour
Exibir arquivo Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
PEG Animator
jumping CharacterMoverJumping
movement CharacterMoverMovement
movingPlatform CharacterMoverMovingPlatform
onlyPlayer LayerMask
sliding CharacterMoverSliding

Public Methods

Method Description
ToggleCrouch ( ) : void

Private Methods

Method Description
AdjustGroundVelocityToNormal ( Vector3 hVelocity, Vector3 groundNormal ) : Vector3
ApplyGravityAndJumping ( Vector3 velocity ) : Vector3
ApplyInputVelocityChange ( Vector3 velocity ) : Vector3
Awake ( ) : void
CalculateJumpVerticalSpeed ( float targetJumpHeight ) : float
FixedUpdate ( ) : void
GetDesiredHorizontalVelocity ( ) : Vector3
GetDirection ( ) : Vector3
GetMaxAcceleration ( bool grounded ) : float
IsGrounded ( ) : bool
IsGroundedTest ( ) : bool
IsJumping ( ) : bool
IsSliding ( ) : bool
IsTouchingCeiling ( ) : bool
MaxSpeedInDirection ( Vector3 desiredMovementDirection ) : float
MoveWithPlatform ( ) : bool
OnControllerColliderHit ( ControllerColliderHit hit ) : void
SetControllable ( bool controllable ) : void
SetVelocity ( Vector3 velocity ) : void
SubtractNewPlatformVelocity ( ) : IEnumerator
TooSteep ( ) : bool
Update ( ) : void
UpdateFunction ( ) : void
canStand ( ) : bool

Method Details

ToggleCrouch() public method

public ToggleCrouch ( ) : void
return void

Property Details

PEG public_oe property

public Animator PEG
return Animator

jumping public_oe property

public CharacterMoverJumping jumping
return CharacterMoverJumping

movement public_oe property

public CharacterMoverMovement movement
return CharacterMoverMovement

movingPlatform public_oe property

public CharacterMoverMovingPlatform movingPlatform
return CharacterMoverMovingPlatform

onlyPlayer public_oe property

public LayerMask onlyPlayer
return LayerMask

sliding public_oe property

public CharacterMoverSliding sliding
return CharacterMoverSliding