Create a GameObject with CollectiblesManager script attached.
Add PrimaryCollectible and SecondaryCollectible prefabs as child of the CollectiblesManager gameobject in the hierachy.
Add PrimaryCollectible and SecondaryCollectible gameObjects in to CollectiblesManager list in the correct order
Add CollectibleScore Scriptable Object (found in project) to collectibles manager (this is based on the name)
Note: Ensure size length of Primary Collectibles Collected and Secondary Collectibles Collected is the same as per the puzzle. (Will not be automatically updated)
To use:
Only do this for puzzle levels
GameObject
withCollectiblesManager
script attached.PrimaryCollectible
andSecondaryCollectible
prefabs as child of theCollectiblesManager
gameobject in the hierachy.PrimaryCollectible
andSecondaryCollectible
gameObjects in toCollectiblesManager
list in the correct orderCollectibleScore
Scriptable Object (found in project) to collectibles manager (this is based on the name)Note: Ensure size length of
Primary Collectibles Collected
andSecondary Collectibles Collected
is the same as per the puzzle. (Will not be automatically updated)