2019-11-23 14:23:09 +01:00
|
|
|
extends Node
|
|
|
|
|
|
|
|
var _collectibles: Array
|
|
|
|
|
|
|
|
|
|
|
|
func addCollectible (coll):
|
2019-11-23 14:49:20 +01:00
|
|
|
Logger.info("appending new collectible: " + String(coll.get_instance_id()))
|
2019-11-23 15:37:52 +01:00
|
|
|
Logger.info("current collection count: " + String(Collector.getCount()))
|
2019-11-23 14:23:09 +01:00
|
|
|
_collectibles.append(coll)
|
|
|
|
|
|
|
|
|
|
|
|
func getCount ():
|
|
|
|
return _collectibles.size()
|