basic ECS spawner
This commit is contained in:
12
addons/gecs/tests/components/c_test_g.gd
Normal file
12
addons/gecs/tests/components/c_test_g.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
class_name C_TestG
|
||||
extends Component
|
||||
|
||||
@export var value: int = 0
|
||||
|
||||
static var init_count: int = 0
|
||||
|
||||
func _init(_value: int = 0):
|
||||
value = _value
|
||||
init_count += 1
|
||||
# to test _init() calling problem
|
||||
print("Component c_test_g init, value=%d" % value)
|
||||
Reference in New Issue
Block a user