Class Effects
Common entry point for any visual effects prefab instantiated by the HitObjectManager.
Namespace: MouseDance.Runtime
Assembly: MouseDance.Runtime.dll
Syntax
public class Effects : MonoBehaviour
Fields
_originalScale
Declaration
[SerializeField]
protected Vector3 _originalScale
Field Value
Type | Description |
---|---|
Vector3 |
_particleSystems
Declaration
[SerializeField]
protected ParticleSystem[] _particleSystems
Field Value
Type | Description |
---|---|
ParticleSystem[] |
_transform
Declaration
[SerializeField]
protected Transform _transform
Field Value
Type | Description |
---|---|
Transform |
_useColourOfHitObject
Declaration
[SerializeField]
protected bool _useColourOfHitObject
Field Value
Type | Description |
---|---|
Boolean |
Methods
Show(Vector3, Color, Single)
Show the visual effects in the specified position, color, and scale.
Declaration
public virtual void Show(Vector3 newWorldPos, Color newColour, float scale)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | newWorldPos | Show the visual effects at this world-space position. |
Color | newColour | Show the visual effects with this colour. |
Single | scale | Show the visual effects with this scale. |