castSpell() 공개 메소드

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
리턴 void
예제 #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;
     }
 }
예제 #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);
     }
 }