mirror of
https://github.com/nothke/quality-control.git
synced 2025-08-09 07:13:42 +00:00
Right click hammer time!
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user