19 lines
275 B
GDScript
19 lines
275 B
GDScript
class_name ActiveItem extends Item
|
|
|
|
@export var sprite : Texture2D
|
|
|
|
func collect() -> bool:
|
|
if (player.active_item == null):
|
|
player.active_item = self
|
|
actually_collect()
|
|
|
|
return true
|
|
return false
|
|
|
|
func actually_collect():
|
|
pass
|
|
|
|
func activate():
|
|
assert(false)
|
|
|
|
|