Added ManaSystem which successfully tracks mana. This however is not very smooth and needs work. It currently modulates color of a GUITexture to display level of mana. The formula to calculate mana loss is also incorrect and needs fixing. I also switched CognitivLift and ManaSystem from using CognitivSkillEvent to using the NotificationCenter which makes things much more flexible.
Updated the way the mana system handles updating mana. Instead of using a coroutine to decrement mana, it instead immediately decrements. This causes a jump in the bar, however, this shows that the mana is reduced. I replaced debug textures with an actual mana bar which grows and shrinks according to the current mana. I fixed the way mana cost is calculated. This makes it much more realistic. I also set default values for CognitivObjects.
Refactored ManaSystem to be more efficient and handle edge cases just in case. Added the rest of the implemented CogntivEvents to ManaSystem.
Added a SpeechBubble prefab and Manager. The way this works is that an Notification is fired with a position, the text, and the duration of bubble. The bubble is then instantiated and added to a list of currently active bubbles. During the update function, each bubble is checked to see if they have expired. If so, they are removed. This currently does not set text on the bubble, but the bubble does show up.
Implemented a SpeechManager in which a Speech Bubble can be displayed on the screen for a given durration before being removed.
About to rebase
Merge branch 'speechbubbles'
Merge branch 'master' of https://github.com/majora2007/CerebralAcademy