C# Class ThirdPersonController, unity-network-sample

Inheritance: MonoBehaviour
ファイルを表示 Open project: anchan828/unity-network-sample Class Usage Examples

Public Properties

Property Type Description
canCapeFly bool
canJump bool
canWallJump bool
capeFlyGravity float
extraJumpHeight float
getUserInput bool
gravity float
horizontalInput float
inAirControlAcceleration float
isMoving bool
jumpButton bool
jumpHeight float
rotateSpeed float
runSpeed float
speedSmoothing float
trotAfterSeconds float
trotSpeed float
verticalInput float
walkSpeed float

Public Methods

Method Description
ApplyGravity ( ) : void
ApplyJumping ( ) : void
ApplyWallJump ( ) : void
Awake ( ) : void
DidJump ( ) : void
GetDirection ( ) : Vector3
GetLean ( ) : float
GetLockCameraTimer ( ) : float
GetSpeed ( ) : float
HasJumpReachedApex ( ) : bool
IsCapeFlying ( ) : bool
IsGrounded ( ) : bool
IsGroundedWithTimeout ( ) : bool
IsJumping ( ) : bool
IsMovingBackwards ( ) : bool
OnControllerColliderHit ( ControllerColliderHit hit ) : void
Reset ( ) : void
SuperJump ( float height ) : void
SuperJump ( float height, Vector3 jumpVelocity ) : void
Update ( ) : void
UpdateSmoothedMovementDirection ( ) : void

Private Methods

Method Description
CalculateJumpVerticalSpeed ( float targetJumpHeight ) : float

Method Details

ApplyGravity() public method

public ApplyGravity ( ) : void
return void

ApplyJumping() public method

public ApplyJumping ( ) : void
return void

ApplyWallJump() public method

public ApplyWallJump ( ) : void
return void

Awake() public method

public Awake ( ) : void
return void

DidJump() public method

public DidJump ( ) : void
return void

GetDirection() public method

public GetDirection ( ) : Vector3
return Vector3

GetLean() public method

public GetLean ( ) : float
return float

GetLockCameraTimer() public method

public GetLockCameraTimer ( ) : float
return float

GetSpeed() public method

public GetSpeed ( ) : float
return float

HasJumpReachedApex() public method

public HasJumpReachedApex ( ) : bool
return bool

IsCapeFlying() public method

public IsCapeFlying ( ) : bool
return bool

IsGrounded() public method

public IsGrounded ( ) : bool
return bool

IsGroundedWithTimeout() public method

public IsGroundedWithTimeout ( ) : bool
return bool

IsJumping() public method

public IsJumping ( ) : bool
return bool

IsMovingBackwards() public method

public IsMovingBackwards ( ) : bool
return bool

OnControllerColliderHit() public method

public OnControllerColliderHit ( ControllerColliderHit hit ) : void
hit UnityEngine.ControllerColliderHit
return void

Reset() public method

public Reset ( ) : void
return void

SuperJump() public method

public SuperJump ( float height ) : void
height float
return void

SuperJump() public method

public SuperJump ( float height, Vector3 jumpVelocity ) : void
height float
jumpVelocity Vector3
return void

Update() public method

public Update ( ) : void
return void

UpdateSmoothedMovementDirection() public method

public UpdateSmoothedMovementDirection ( ) : void
return void

Property Details

canCapeFly public_oe property

public bool canCapeFly
return bool

canJump public_oe property

public bool canJump
return bool

canWallJump public_oe property

public bool canWallJump
return bool

capeFlyGravity public_oe property

public float capeFlyGravity
return float

extraJumpHeight public_oe property

public float extraJumpHeight
return float

getUserInput public_oe property

public bool getUserInput
return bool

gravity public_oe property

public float gravity
return float

horizontalInput public_oe property

public float horizontalInput
return float

inAirControlAcceleration public_oe property

public float inAirControlAcceleration
return float

isMoving public_oe property

public bool isMoving
return bool

jumpButton public_oe property

public bool jumpButton
return bool

jumpHeight public_oe property

public float jumpHeight
return float

rotateSpeed public_oe property

public float rotateSpeed
return float

runSpeed public_oe property

public float runSpeed
return float

speedSmoothing public_oe property

public float speedSmoothing
return float

trotAfterSeconds public_oe property

public float trotAfterSeconds
return float

trotSpeed public_oe property

public float trotSpeed
return float

verticalInput public_oe property

public float verticalInput
return float

walkSpeed public_oe property

public float walkSpeed
return float