C# Class CharacterMover, TheUnseen

Inheritance: MonoBehaviour
Show file 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 property

public Animator PEG
return Animator

jumping public property

public CharacterMoverJumping jumping
return CharacterMoverJumping

movement public property

public CharacterMoverMovement movement
return CharacterMoverMovement

movingPlatform public property

public CharacterMoverMovingPlatform movingPlatform
return CharacterMoverMovingPlatform

onlyPlayer public property

public LayerMask onlyPlayer
return LayerMask

sliding public property

public CharacterMoverSliding sliding
return CharacterMoverSliding