C# Class PlayerMotor

Inheritance: MonoBehaviour
显示文件 Open project: Undiscovered-Game-Studios/Project-Legacy-2D Class Usage Examples

Public Properties

Property Type Description
canSprint bool
curSprintFactor float
maxSpeed float
notMovedAfterStrafe bool

Public Methods

Method Description
FixedUpdate ( ) : void
OnCollisionExit2D ( Collision2D col ) : void
OnCollisionStay2D ( Collision2D col ) : void
Start ( ) : void

Private Methods

Method Description
Strafe ( ) : void
TrackSprint ( ) : void
VectorMove ( ) : void
VectorRotate ( ) : void

Method Details

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

OnCollisionExit2D() public method

public OnCollisionExit2D ( Collision2D col ) : void
col Collision2D
return void

OnCollisionStay2D() public method

public OnCollisionStay2D ( Collision2D col ) : void
col Collision2D
return void

Start() public method

public Start ( ) : void
return void

Property Details

canSprint public_oe property

public bool canSprint
return bool

curSprintFactor public_oe property

public float curSprintFactor
return float

maxSpeed public_oe property

public float maxSpeed
return float

notMovedAfterStrafe public_oe property

public bool notMovedAfterStrafe
return bool