The_Dark_Side_of_Earth/items/active_item.gd

8 lines
150 B
GDScript3
Raw Normal View History

class_name ActiveItem extends Item
func collect() -> bool:
if (player.active_item == null):
player.active_item = self
return true
return false