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.
12 lines
325 B
12 lines
325 B
public partial class Synchronizer : MultiplayerSynchronizer |
|
{ |
|
// Required because `Velocity` can't be synchronized automatically. |
|
[Export] public Vector3 PlayerVelocity { |
|
get => _player.Velocity; |
|
set => _player.Velocity = value; |
|
} |
|
|
|
Player _player; |
|
public override void _Ready() |
|
=> _player = GetParent<Player>(); |
|
}
|
|
|