C# Class CharacterMovement, unity-unet-authoritative-networking

Inheritance: NetworkBehaviour
Show file Open project: atrakeur/unity-unet-authoritative-networking Class Usage Examples

Public Methods

Method Description
Awake ( ) : void
RunUpdate ( float delta ) : void

Run update like classic unity's Update We use an other method here because the calling must be controlled by CharacterNetwork We can't use standard Update method because Unity update order is non-deterministic

SuperUpdate ( ) : void

Called by the controller when wanting to update custom code data

Private Methods

Method Description
AcquiringGround ( ) : bool
CalculateJumpVelocity ( ) : float
LocalMovement ( ) : Vector3

Constructs a vector representing our movement local to our lookDirection, which is controlled by the camera

MaintainingGround ( ) : bool

Method Details

Awake() public method

public Awake ( ) : void
return void

RunUpdate() public method

Run update like classic unity's Update We use an other method here because the calling must be controlled by CharacterNetwork We can't use standard Update method because Unity update order is non-deterministic
public RunUpdate ( float delta ) : void
delta float
return void

SuperUpdate() public method

Called by the controller when wanting to update custom code data
public SuperUpdate ( ) : void
return void