You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
748 B
19 lines
748 B
public partial class Player : CharacterBody3D |
|
{ |
|
public int PeerId => GetMultiplayerAuthority(); |
|
public bool IsLocal => this.IsAuthority(); |
|
|
|
// TODO: Add "Controller" suffix to these. |
|
public MovementController Movement { get; private set; } |
|
public CameraController Camera { get; private set; } |
|
public AnimationController Animation { get; private set; } |
|
public PickupController Pickup { get; private set; } |
|
|
|
public override void _EnterTree() |
|
{ |
|
Movement = GetNode<MovementController>(nameof(MovementController)); |
|
Camera = GetNode<CameraController>(nameof(CameraController)); |
|
Animation = GetNode<AnimationController>(nameof(AnimationController)); |
|
Pickup = GetNode<PickupController>(nameof(PickupController)); |
|
} |
|
}
|
|
|