Additional "Magic Time User" Components

v1.0

There are additional components which can make use of a MagicTimeUser, and automatically adjust other values. Each one will handle different component types, and provide virtual methods so you can extend them if you need to.

Magic Time User Particle System

The MagicTimeUserParticleSystem component will gather all ParticleSystems that are on this Projectile, and set their simulation speed to match the CombinedValue() of the GameTimeUser object.

This way as the object speeds up and slows down, the particle system effects will as well.

Magic Time User Trail Renderer

Add the MagicTimeUserTrailRenderer component to handle any TrailRenderer components on the projectile.

Magic Time User Audio Source

Add the MagicTimeUserAudioSource component to automatically adjust the pitch of audio clips on the Audio Source. This will cache the starting pitch values, so should really be used only for Audio Sources that do not have dynamic clips.

Magic Time User Audio Mixer

This would usually be added to an Audio Mixer object, and will adjust the pitch of the mixer. You will probably want to extend this class, to better adjust the values based on your project.

Last updated