SpellCaster Class |
Namespace: RavingBots.MagicGestures.Controller
public class SpellCaster : MonoBehaviour
The SpellCaster type exposes the following members.
| Name | Description | |
|---|---|---|
| SpellCaster | Initializes a new instance of the SpellCaster class |
| Name | Description | |
|---|---|---|
| Awake |
Save the initial scale of the preview bubble and hide it.
| |
| ClearPreview |
Clear the spell being previewed.
| |
| ClearSpell |
Clear the spell being fired.
| |
| LoadSpell |
Load the given spell.
| |
| SetPressed |
Update the pressed state.
| |
| Update |
Update the animation progress.
|
| Name | Description | |
|---|---|---|
| _clipInitScale |
The initial scale of the preview bubble.
| |
| _clipScale |
The progress of the deflation animation.
| |
| _fireEffect |
The pell effect being fired from the tip.
| |
| _pressed | if user is pressing the trigger.
| |
| _previewEffect |
The spell effect being previewed in the bubble.
| |
| AnimatedClip |
The parent transform of the preview bubble.
| |
| ClipRotationSpeed |
The rotation speed of the preview object.
| |
| ClipScaleDuration |
The duration of the deflation animation.
| |
| PreviewAnchor |
The transform of the preview bubble.
|