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

Inheritance: NetworkBehaviour
Afficher le fichier Open project: atrakeur/unity-unet-authoritative-networking Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Awake ( ) : void
Résultat void

RunUpdate() public méthode

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
Résultat void

SuperUpdate() public méthode

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