Closed antfarmar closed 8 years ago
Created a new branch hot-reloadable
.
GameManager
singleton now manages 1 pool instance per prefab.null
).
OnEnable
.GameManager
instance._Note:_ It is better to take advantage of things like dictionaries, queues, static classes, object references, etc, rather than the minor advantages that hot-reloading provides (which is probably not sustainable as a project grows anyhow). One should prefer clean, efficient, readable code and architecture over most things that would sacrifice it.
Minor Issue:
ObjectPooler
uses aDictionary
to reference the object pools (queues).Possible Fixes:
OnDisable()
andOnEnable()
on all objects.