This commit is contained in:
2026-05-12 21:43:03 +07:00
parent 5025383676
commit a1e52f95ad
12 changed files with 995 additions and 32 deletions

View File

@@ -26,7 +26,6 @@ namespace OnlyScove.Scripts
[Networked] public bool IsGrounded { get; set; }
[Networked] public bool WasGrounded { get; set; }
[Networked] public float VelocityY { get; set; }
[Networked] public Vector3 NetworkedPosition { get; set; }
private CharacterController controller;
@@ -48,10 +47,6 @@ namespace OnlyScove.Scripts
if (controller != null && controller.enabled)
{
controller.Move(velocity * deltaTime);
if (Object != null && Object.HasStateAuthority)
{
NetworkedPosition = transform.position;
}
}
}