slendosaur/WikiJam/Util/Collector.gd

12 lines
222 B
GDScript3
Raw Normal View History

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 14:23:09 +01:00
_collectibles.append(coll)
func getCount ():
return _collectibles.size()