|  | BulletLauncher Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: RavingBots.MagicGestures.Game.Magic
 Syntax
Syntaxpublic class BulletLauncher : MagicEffect
The BulletLauncher type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | BulletLauncher | Initializes a new instance of the BulletLauncher class | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | Awake | 
                Reset this instance to the pristine state.
            (Overrides MagicEffectAwake.) | 
|  | CanFire |  if another bullet can be fired.
             | 
|  | CreateBullets | 
                Create the bullet instances.
             | 
|  | Fire | 
                Fire another bullet.
             | 
|  | FixedUpdate | 
                Update the effect state.
            (Overrides MagicEffectFixedUpdate.) | 
|  | OnRelease | 
                Called when the user releases the trigger.
            (Overrides MagicEffectOnRelease.) | 
|  | ResetBullets | 
                Reset the bullet instances.
             | 
|  | ResetState | 
                Reset this instance to the pristine state.
            (Overrides MagicEffectResetState.) | 
|  | SetColor | 
                Called when the color of the effect changes.
            (Overrides MagicEffectSetColor(Color).) | 
 Fields
Fields| Name | Description | |
|---|---|---|
|  | _bullets | 
                The bullet instances.
             | 
|  | _bulletTransform | 
                The saved transform of the bullet.
             | 
|  | _coloredMesh | 
                The mesh renderers that are colored according
                to configured spell preferences.
             | 
|  | _coloredTrail | 
                The trail renderers that are colored according
                to configured spell preferences.
             | 
|  | _firedCount | 
                The number of bullets already launched.
             | 
|  | _firedTime | 
                The time since first bullet was launched.
             | 
|  | BulletCount | 
                The number of bullets to launch.
             | 
|  | BulletPrefab | 
                The bullet prefab to use.
             | 
|  | ColorLighten | 
                Teh configured color lighten factor.
             | 
|  | FireInterval | 
                The interval between bullets.
             | 
|  | FireSound | 
                The sound played when a bullet is launched.
             | 
 Remarks
Remarks See Also
See Also