slendosaur/WikiJam/Util/Collector.gd

17 lines
343 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)
2019-11-23 17:07:00 +01:00
Logger.info("current collection count: " + String(Collector.getCount()))
2019-11-23 14:23:09 +01:00
func getCount ():
2019-11-23 17:07:00 +01:00
return _collectibles.size()
func Clear ():
return _collectibles.clear()