Updated to move to array

This commit is contained in:
Alejandro Saucedo 2020-09-26 15:18:35 +01:00
parent e78e2e4e72
commit 2a43d8bb51
3 changed files with 22 additions and 14 deletions

View file

@ -8,10 +8,10 @@ func _ready():
# Use existing node
print($KomputeNode.get_total())
$KomputeNode.add(10)
$KomputeNode.add([10.0, 20.0])
print($KomputeNode.get_total())
$KomputeNode.add(10)
$KomputeNode.add([10.0, 20.0])
print($KomputeNode.get_total())
# Create new instance
@ -21,9 +21,9 @@ func _ready():
print(s.get_total())
# Now we can again send further commands
s.add(10)
s.add([10.0, 20.0])
print(s.get_total())
s.add(10)
s.add([10.0, 20.0])
print(s.get_total())