Supercharged Vector2

FREE
Publisher Jacob Homanics
File size 83.05kB
Number of files 31
Latest version 1
Latest release date 2025-01-13 09:28:12
First release date 2025-01-13 09:28:12
Supported Unity versions 2018.4.2 or higher

The framework is divided into three main components:

  1. Vector2 Class: A customizable and event-driven extension of Unity's Vector2. It supports event notifications for changes in its X and Y values, helper methods for comparing or modifying these values, and context menu shortcuts for quick adjustments in the Unity Editor.
  2. Health Class: A health management system built on the enhanced Vector2. The X component represents current health, while Y maps to maximum health. It provides utility methods to increase, decrease, or restore health while triggering relevant events such as health changes, deaths, or reaching maximum health.
  3. Timer Class: A timer system powered by the Vector2. The X component represents elapsed time, and Y denotes the duration. The timer supports multiple tick types, such as DeltaTime and FixedDeltaTime, and offers methods to track elapsed time, calculate time left, and reset the timer. Events notify when specific thresholds, such as duration completion, are met.

Each component is designed to promote modularity and reuse, making it a perfect fit for Unity developers looking to enhance their projects with event-driven systems

Top Publisher Assets