Пример #1
0
 /// <summary>
 /// Casts the night vision (generic)
 /// </summary>
 /// <param name="caster">Caster.</param>
 /// <param name="ActiveSpellArray">Active spell array.</param>
 /// <param name="EffectID">Effect I.</param>
 /// <param name="EffectSlot">Effect slot.</param>
 void Cast_NightVision(GameObject caster, SpellEffect[] ActiveSpellArray, int EffectID, int EffectSlot)
 {
     SpellProp_Light spl = new SpellProp_Light();
             spl.init (EffectID,caster);
             LightSource.MagicBrightness=spl.BaseDamage;
             SpellEffect nv= (SpellEffectNightVision)SetSpellEffect(caster, ActiveSpellArray, EffectSlot, EffectID);
             nv.Value = spl.BaseDamage;
             nv.counter= spl.counter;
             //sel.ApplyEffect();//Apply the effect.
             nv.Go ();// Apply the effect and Start the timer.
             //StartCoroutine(sel.timer());
 }
Пример #2
0
 /// <summary>
 /// Casts the light spells (generic)
 /// </summary>
 /// <param name="caster">Caster.</param>
 /// <param name="ActiveSpellArray">Active spell array.</param>
 /// <param name="EffectID">Effect ID of the spell</param>
 /// <param name="EffectSlot">Effect slot.</param>
 void Cast_Light(GameObject caster, SpellEffect[] ActiveSpellArray, int EffectID, int EffectSlot)
 {
     SpellProp_Light spl = new SpellProp_Light();
             spl.init (EffectID,caster);
             LightSource.MagicBrightness=spl.BaseDamage;
             SpellEffect sel= (SpellEffectLight)SetSpellEffect(caster, ActiveSpellArray, EffectSlot, EffectID);
             sel.Value = spl.BaseDamage;
             sel.counter= spl.counter;
             sel.Go ();// Apply the effect and Start the timer.
 }