Click or drag to resize

SpellCaster Class

The component responsible for the visual effects of casting spells: inflating the model, and updating the preview bubble.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          RavingBots.MagicGestures.ControllerSpellCaster

Namespace:  RavingBots.MagicGestures.Controller
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class SpellCaster : MonoBehaviour

The SpellCaster type exposes the following members.

Constructors
  NameDescription
Public methodSpellCaster
Initializes a new instance of the SpellCaster class
Top
Properties
  NameDescription
Public propertyIsLoaded
if the effects are loaded.
Public propertyPressed
if user is pressing the trigger.
Top
Methods
  NameDescription
Protected methodAwake
Save the initial scale of the preview bubble and hide it.
Private methodClearPreview
Clear the spell being previewed.
Public methodClearSpell
Clear the spell being fired.
Public methodLoadSpell
Load the given spell.
Private methodSetPressed
Update the pressed state.
Protected methodUpdate
Update the animation progress.
Top
Fields
  NameDescription
Private field_clipInitScale
The initial scale of the preview bubble.
Private field_clipScale
The progress of the deflation animation.
Private field_fireEffect
The pell effect being fired from the tip.
Private field_pressed
if user is pressing the trigger.
Private field_previewEffect
The spell effect being previewed in the bubble.
Protected fieldAnimatedClip
The parent transform of the preview bubble.
Public fieldClipRotationSpeed
The rotation speed of the preview object.
Public fieldClipScaleDuration
The duration of the deflation animation.
Protected fieldPreviewAnchor
The transform of the preview bubble.
Top
See Also