override void Release() | Unparents the object and starts shrinking it. The real pool release happens in FadeFinished once the shrink ends. |
protected virtual void Awake() | Sets up the scale lerp, snaps the scale to 0.01 and hooks the grow animation to the pool's Requested event. |
protected virtual void FadeFinished() | Called when the shrink finishes. Stops updating and returns the object to the pool. |
protected void Lerp(float target, float speed) | Starts a scale lerp to a target size at the given speed, registering the update if needed. |
protected override void OnDestroy() | Deregisters the update method before the base clean-up. |
protected virtual void UpdateLerp() | Steps the scale lerp each frame and deregisters itself when the lerp ends (unless IsAlwaysUpdating). |