castSpell() public method

Casts a magic spell based on the constructed magic rune string
public castSpell ( GameObject caster, int Rune1, int Rune2, int Rune3, bool ready ) : void
caster GameObject Caster.
Rune1 int Rune1.
Rune2 int Rune2.
Rune3 int Rune3.
ready bool
return void
Ejemplo n.º 1
0
 public void SpellMode()
 {    //Casts a spell on right click.
     if (Input.GetMouseButtonDown(1) && (WindowDetectUW.CursorInMainWindow == true))
     {
         PlayerMagic.castSpell(this.gameObject, PlayerMagic.ReadiedSpell, false);
         PlayerMagic.SpellCost = 0;
     }
 }
Ejemplo n.º 2
0
 public void SpellMode()
 {    //Casts a spell on right click.
     if (
         (Input.GetMouseButtonDown(1)) &&
         ((WindowDetectUW.CursorInMainWindow == true) || (MouseLookEnabled == true)) &&
         (UWHUD.instance.window.JustClicked == false) &&
         ((PlayerCombat.AttackCharging == false) && (PlayerCombat.AttackExecuting == false))
         )
     {
         PlayerMagic.castSpell(this.gameObject, PlayerMagic.ReadiedSpell, false);
         PlayerMagic.SpellCost = 0;
         UWHUD.instance.window.UWWindowWait(1.0f);
     }
 }