C# Class UnityPlatformer.CharacterActionWallStick

Stick at walls. Also perform wall-jumps
Inheritance: CharacterAction
Mostra file Open project: llafuente/unity-platformer

Public Properties

Property Type Description
actionJump CharacterActionJump
enableWallJumps bool
wallStickLeaveAgain float

Public Methods

Method Description
GainControl ( float delta ) : void

Reset SmoothDamp and enter state States.WallSliding

GetPostUpdateActions ( ) : PostUpdateActions

default behaviour

OnEnable ( ) : void

Initialization

PerformAction ( float delta ) : void

Stick, then slide down. Can dismount jumping if enableWallJumps

WantsToUpdate ( float delta ) : int

When Character is colliding left or right but now below and falling! Stick!

Method Details

GainControl() public method

Reset SmoothDamp and enter state States.WallSliding
public GainControl ( float delta ) : void
delta float
return void

GetPostUpdateActions() public method

default behaviour
public GetPostUpdateActions ( ) : PostUpdateActions
return PostUpdateActions

OnEnable() public method

Initialization
public OnEnable ( ) : void
return void

PerformAction() public method

Stick, then slide down. Can dismount jumping if enableWallJumps
public PerformAction ( float delta ) : void
delta float
return void

WantsToUpdate() public method

When Character is colliding left or right but now below and falling! Stick!
public WantsToUpdate ( float delta ) : int
delta float
return int

Property Details

actionJump public_oe property

CharacterActionJump
public CharacterActionJump,UnityPlatformer actionJump
return CharacterActionJump

enableWallJumps public_oe property

Character can use wall-jumps ?
public bool enableWallJumps
return bool

wallStickLeaveAgain public_oe property

After wall-jump, time that CharacterActionWallStick will be disabled
public float wallStickLeaveAgain
return float