C# 클래스 UnityPlatformer.JumpVariableHeight

Variable Jump. Use to create a Min/Max jump depending on how much time the key is pressed
상속: Jump
파일 보기 프로젝트 열기: llafuente/unity-platformer

공개 프로퍼티들

프로퍼티 타입 설명
apexFrames int
hangFrames int
maxJumpVelocity float
minJumpVelocity float

공개 메소드들

메소드 설명
EndJump ( Vector3 &velocity ) : void
Init ( float timeToJumpApex, float minJumpHeight, float maxJumpHeight, float hangTime ) : void

Constructor

IsBeforeApex ( ) : bool
IsHanging ( ) : bool
JumpVariableHeight ( Character _character, JumpVariableHeightProperties jp ) : System

Constructor

JumpVariableHeight ( Character _character, float timeToJumpApex, float minJumpHeight, float maxJumpHeight, float hangTime ) : System

Constructor

Jumping ( Vector3 &velocity, float delta ) : bool
StartJump ( Vector3 &velocity ) : void

메소드 상세

EndJump() 공개 메소드

public EndJump ( Vector3 &velocity ) : void
velocity Vector3
리턴 void

Init() 공개 메소드

Constructor
public Init ( float timeToJumpApex, float minJumpHeight, float maxJumpHeight, float hangTime ) : void
timeToJumpApex float
minJumpHeight float
maxJumpHeight float
hangTime float
리턴 void

IsBeforeApex() 공개 메소드

public IsBeforeApex ( ) : bool
리턴 bool

IsHanging() 공개 메소드

public IsHanging ( ) : bool
리턴 bool

JumpVariableHeight() 공개 메소드

Constructor
public JumpVariableHeight ( Character _character, JumpVariableHeightProperties jp ) : System
_character Character
jp JumpVariableHeightProperties
리턴 System

JumpVariableHeight() 공개 메소드

Constructor
public JumpVariableHeight ( Character _character, float timeToJumpApex, float minJumpHeight, float maxJumpHeight, float hangTime ) : System
_character Character
timeToJumpApex float
minJumpHeight float
maxJumpHeight float
hangTime float
리턴 System

Jumping() 공개 메소드

public Jumping ( Vector3 &velocity, float delta ) : bool
velocity Vector3
delta float
리턴 bool

StartJump() 공개 메소드

public StartJump ( Vector3 &velocity ) : void
velocity Vector3
리턴 void

프로퍼티 상세

apexFrames 공개적으로 프로퍼티

Frame count until apex
public int apexFrames
리턴 int

hangFrames 공개적으로 프로퍼티

Frame count hanging
public int hangFrames
리턴 int

maxJumpVelocity 공개적으로 프로퍼티

Max jump velocity
public float maxJumpVelocity
리턴 float

minJumpVelocity 공개적으로 프로퍼티

Min jump velocity
public float minJumpVelocity
리턴 float