Daily Archives: December 21, 2015


Health Script v2.0

Health Script 2.0 Release Notes

Added

  • Moved the health related scripts into the YounGenTech.Health namespace
  • C# Events have been swapped out for UnityEvents. You can now setup events to be triggered using the inspector rather than just through code.
  • Examples of instantiating prefabs and changing UI using the health events
  • OnRestored event in the Health script for when you are fully healed
  • NormalizedValue that will give you a value from 0 to 1 based on a scale from 0 to the max health value

Changed

  • The assist side of HealthAssist has been seperated for ease of use and turned into the Assist script
  • SendMessage messages are no longer sent from the Health script
  • Health now inherits from the IStat interface for extensibility
  • OnDamaged and OnHealed events now happen even if you were full restored or died within the same call. They are called right before OnDeath and OnRestored
  • And more…