This repository has been archived on 2025-01-17. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
blood-and-mortar/objects/weapons/projectiles/throwable.gd

12 lines
179 B
GDScript

class_name Throwable
extends RigidBody2D
func _ready() -> void:
pass
func _on_interacted(user: Node) -> void:
var player = user as Player
if player:
player.pick_up(self)