C# Класс CharacterMovement, unity-unet-authoritative-networking

Наследование: NetworkBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
AcquiringGround ( ) : bool
CalculateJumpVelocity ( ) : float
LocalMovement ( ) : Vector3

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

MaintainingGround ( ) : bool

Описание методов

Awake() публичный Метод

public Awake ( ) : void
Результат void

RunUpdate() публичный Метод

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
Результат void

SuperUpdate() публичный Метод

Called by the controller when wanting to update custom code data
public SuperUpdate ( ) : void
Результат void