8 lines
150 B
GDScript3
8 lines
150 B
GDScript3
|
|
class_name ActiveItem extends Item
|
||
|
|
|
||
|
|
func collect() -> bool:
|
||
|
|
if (player.active_item == null):
|
||
|
|
player.active_item = self
|
||
|
|
return true
|
||
|
|
return false
|