SpellProp_SheetLightning.init C# (CSharp) Méthode

init() public méthode

public init ( int effectId, GameObject SpellCaster ) : void
effectId int
SpellCaster GameObject
Résultat void
    public override void init(int effectId, GameObject SpellCaster)
    {
        base.init (effectId,SpellCaster);
        ProjectileSprite = UWEBase._RES +"/Sprites/object_blank";
        Force=500.0f;
        BaseDamage=8;
        splashDamage=3;
        splashDistance=1.0f;
        impactFrameStart=62;
        impactFrameEnd=62;
        spread=4;
        noOfCasts=Random.Range(1,3);
        SecondaryStartFrame=50;
        SecondaryEndFrame=53;
    }

Usage Example

 /// <summary>
 /// Casts sheet lightning
 /// </summary>
 /// <param name="caster">Caster.</param>
 /// <param name="EffectID">Effect ID of the spell</param>
 void Cast_VasOrtGrav(GameObject caster, int EffectID)
 {
     //Sheet lightning
             SpellProp_SheetLightning spVOG =new SpellProp_SheetLightning();
             spVOG.init (EffectID,caster);
             CastProjectile(caster, (SpellProp)spVOG);
 }
All Usage Examples Of SpellProp_SheetLightning::init
SpellProp_SheetLightning