Added many other things and processings
This commit is contained in:
@@ -16,12 +16,22 @@ public sealed class PlayerCarryController : NetworkBehaviour, IPlayerSystem
|
||||
if (!isInitialized || !IsOwner || Keyboard.current == null)
|
||||
return;
|
||||
|
||||
if (Keyboard.current.gKey.wasPressedThisFrame &&
|
||||
NetworkHeldInteractable.TryGetHeldObject(
|
||||
if (!Keyboard.current.gKey.wasPressedThisFrame)
|
||||
return;
|
||||
|
||||
if (NetworkHeldInteractable.TryGetHeldObject(
|
||||
OwnerClientId,
|
||||
out NetworkHeldInteractable heldObject))
|
||||
{
|
||||
heldObject.RequestThrow();
|
||||
return;
|
||||
}
|
||||
|
||||
if (NetworkDraggableInteractable.TryGetDraggedObject(
|
||||
OwnerClientId,
|
||||
out NetworkDraggableInteractable draggedObject))
|
||||
{
|
||||
draggedObject.RequestRelease();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user