Achievement System v 2.0
www.dropbox.com/s/8i8b6kpu4vkysus/AchievementSystemv2.unitypackage?dl=0Sorry for the long wait, during development I had to wipe my computer and lost some of the work.
setting up achievement manager :
-Drag the Achievement Manager prefab into hierarchy.
setting up achievement list:
*Select the manager and scroll to the bottom of the inspector and drop down the achievement list and set the size.
-title: the title of your achievement(note all titles MUST be spelt the same)
-description: a short description on how the achievement is earned
-category: sets achievement types into the sub menus
-points: how many points will be earned on completion
-icon: the icon of the achievement
setting up player settings:
*Find the player and click add component, search for "earn achievement" and add it. Scroll to the bottom of the inspector and drop down the player setting and change the size to the same as achievement list.
-using slider: this function will be called only when the slider value has changed(check its tool tip for setup by hovering over the bool in the inspector)
-object type: the type of object that this script attached to.
-achievement title: title of the achievement(must match achievement list title, the order of the titles does not matter)
-needed to achieve: the amount required to achieve
setting up object settings:
*Add earn achievement component to the object,this can be an AI , a trigger entered or a collision.
-object type: the type of object that this script attached to.
-achievement title: title of the achievement(must match achievement list title and player settings title)
setting up item shop:
*Select the manager and scroll to the bottom of the inspector and drop down the item shop and set the size.
-title: the title of the item.
-description: a short description of the item.
-points: the amount of points the item will cost.
-icon: the items icon.
-item: the prefab to be sold.
-offset: the offset the item is spawned at.(0.5,0.5,0.5 is a decent default)