Click or drag to resize

MagicEffect Class

The base class for the magical effects.
Inheritance Hierarchy

Namespace:  RavingBots.MagicGestures.Game.Magic
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public abstract class MagicEffect : PooledGameObject

The MagicEffect type exposes the following members.

Constructors
  NameDescription
Protected methodMagicEffect
Initializes a new instance of the MagicEffect class
Top
Properties
  NameDescription
Protected propertyAlive
if this effect hasn't expired yet.
Public propertyColor
The color of this effect.
Protected propertyPressed
if the trigger is pressed.
Public propertyPreview
if this effect is used as a preview.
Public propertyPreviewLayer
The layer used when this effect is used as a preview.
Protected propertyReleased
if the trigger has been released.
Protected propertyReleaseTime
The imestamp of the trigger release.
Top
Methods
  NameDescription
Protected methodAwake
Reset this instance to the pristine state.
(Overrides PooledGameObjectAwake.)
Protected methodFixedUpdate
Update the effect state.
Private methodMoveToAnchor
Move the effect to the configured anchor.
Public methodOnPress
Called when the user presses the trigger.
Public methodOnRelease
Called when the user releases the trigger.
Protected methodResetState
Reset this instance to the pristine state.
(Overrides PooledGameObjectResetState.)
Protected methodSetColor
Called when the color of the effect changes.
Private methodSetPreviewLayer
Called when the preview layer of this effect changes.
Public methodSetup
Configure this effect.
Protected methodUpdate
Update the effect state.
Top
Fields
  NameDescription
Private field_anchor
The anchor of this effect.
Private field_color
The color of this effect.
Private field_initialTransform
The saved initial state of this effect's transform.
Private field_previewLayer
The layer used when this effect is used as a preview.
Private field_previewRenderers
The MeshRenderers involved in the preview.
Protected fieldPreviewContainer
The container of the effect's preview.
Protected fieldTimeToLive
The effect lifetime.
Top
Remarks
The effects are configured and stored in prefabs.
See Also