13 lines
296 B
GDScript
13 lines
296 B
GDScript
extends Node
|
|
|
|
var _collectibles: Array
|
|
|
|
|
|
func addCollectible (coll):
|
|
Logger.info("appending new collectible: " + String(coll.get_instance_id()))
|
|
Logger.info("current collection count: " + String(Collector.getCount()))
|
|
_collectibles.append(coll)
|
|
|
|
|
|
func getCount ():
|
|
return _collectibles.size() |