8.4 tore
Created by: torebjerkan530599
Comment based on this template: https://github.com/knowbl/git-commit-message (do a google search for more info on feature flags)
Start:
- Player loose health when touching enemy
- Healthmeter reflects player loosing health. Drag into hierarchy to see effect. (NOT syncronized! Players share the healthbar)
- Last Player to loose health disappears when health is zero
- Script for camera (camera currently not responding to code), will ask Arthur for support.
Add:
- Scriptable object (to store float variables) which acts as a intermediary between gameobjects, such that GameObjects are not dependent on eachother. Right click in the project window to create a new float variable and use it with any field of type float on any GameObject. HP, LightDamage, MaxHP and PlayerSpeed are now float variables.
- Floatreference class. Gives a intutive interface in the inspector for constants or variables.
(floatvariables are stored in Assets/Scripts/Variables)