Right click hammer time!

This commit is contained in:
nothke
2024-08-20 00:20:33 +02:00
parent 71f05400e4
commit 965e207eb4
5 changed files with 49 additions and 15 deletions

View File

@@ -91,6 +91,7 @@ namespace Nothke.Interaction.Items
if (itemInHands) return;
item = _item as Interactable;
item.manager = controller;
if (_item.Rigidbody)
_item.Rigidbody.isKinematic = true;
@@ -147,6 +148,8 @@ namespace Nothke.Interaction.Items
Debug.Log($"Dropped {item.name}");
item.manager = null;
itemInHands = null;
item = null;
}