mirror of
https://github.com/nothke/quality-control.git
synced 2026-10-11 19:28:55 +00:00
Right click hammer time!
This commit is contained in:
1 parent
71f05400e4
commit
965e207eb4
5 files changed
+49
-15
No files matched your search
@@ -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