MagicEffect Class |
Namespace: RavingBots.MagicGestures.Game.Magic
public abstract class MagicEffect : PooledGameObject
The MagicEffect type exposes the following members.
Name | Description | |
---|---|---|
MagicEffect | Initializes a new instance of the MagicEffect class |
Name | Description | |
---|---|---|
Alive | if this effect hasn't expired yet.
| |
Color |
The color of this effect.
| |
Pressed | if the trigger is pressed.
| |
Preview | if this effect is used as a preview.
| |
PreviewLayer |
The layer used when this effect is used as a preview.
| |
Released | if the trigger has been released.
| |
ReleaseTime |
The imestamp of the trigger release.
|
Name | Description | |
---|---|---|
Awake |
Reset this instance to the pristine state.
(Overrides PooledGameObjectAwake.) | |
FixedUpdate |
Update the effect state.
| |
MoveToAnchor |
Move the effect to the configured anchor.
| |
OnPress |
Called when the user presses the trigger.
| |
OnRelease |
Called when the user releases the trigger.
| |
ResetState |
Reset this instance to the pristine state.
(Overrides PooledGameObjectResetState.) | |
SetColor |
Called when the color of the effect changes.
| |
SetPreviewLayer |
Called when the preview layer of this effect changes.
| |
Setup |
Configure this effect.
| |
Update |
Update the effect state.
|
Name | Description | |
---|---|---|
_anchor |
The anchor of this effect.
| |
_color |
The color of this effect.
| |
_initialTransform |
The saved initial state of this effect's transform.
| |
_previewLayer |
The layer used when this effect is used as a preview.
| |
_previewRenderers |
The MeshRenderers involved in the preview.
| |
PreviewContainer |
The container of the effect's preview.
| |
TimeToLive |
The effect lifetime.
|