Maz-Unity Library
04.02.2021 -Share
"Over the (5-7) years I wrote more and more different libraries to make my workflow easier.
From small to big codes. One of the favorite is EventValue. This has unityevent included
and will fire when the value changes.
public EventValue<int> Health;
void Start()
{
Health.Value = playerData.MaxHealth;
}
void ApplyDamage(int damage)
{
Health.Value -= damage;
}
As you can see the gif there are so many folders. It's hard to show them all. I also started to split them into different packages. So I can share them and make it public. The importants part are:
- Inputhelper - GetMousePosition, Objects around cursor etc.
- Tweens
- Text popup - For instance if you hit an enemy it shows the damage number
- Timeutil - Cooldowns, time counter
- VersionChecker - Cooldowns, time counter
- Different editor extensions for instance: EditorModeOnly, DeactivateInPlaymode ( I will talk about this later)
- EventCallback - its little bit like unityevent but with returning value"

