on_interaction method now removes the entity itself
This commit is contained in:
parent
28d9013983
commit
a51661ae6e
@ -6,3 +6,6 @@ class Pickupable(Interactable):
|
|||||||
super().__init__(texture, size, pos, Statistics)
|
super().__init__(texture, size, pos, Statistics)
|
||||||
self.is_pickupable = True
|
self.is_pickupable = True
|
||||||
|
|
||||||
|
def on_interaction(self, Player):
|
||||||
|
super(Pickupable, self).on_interaction(Player)
|
||||||
|
self.kill()
|
||||||
|
Loading…
Reference in New Issue
Block a user