Skip to content

8.4 tore

Carlos Reiakvam requested to merge 8.4-tore into main

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)
  • Player disappears when health is zero
  • Script for camera (camera currently not responding to code)

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.

(stored in Assets/Scripts/Variables)

Merge request reports