13 lines
206 B
GDScript3
13 lines
206 B
GDScript3
|
extends Node
|
||
|
|
||
|
@onready var score: int = 0
|
||
|
@onready var boxes_passed: int = 0
|
||
|
|
||
|
func reset_score():
|
||
|
score = 0
|
||
|
boxes_passed = 0
|
||
|
func increment_boxes():
|
||
|
boxes_passed += 1
|
||
|
func increment_score():
|
||
|
score += 1
|