6 lines
104 B
GDScript
6 lines
104 B
GDScript
extends StaticBody3D
|
|
class_name TheCube
|
|
|
|
|
|
func take_damage(damage: int) -> void:
|
|
Game.health -= damage
|